8000 GitHub - rusq/fsadapter: fsadapter - wrapper for writing files into directories or ZIP archives
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
8000

rusq/fsadapter

Repository files navigation

fsadapter - File System adapter

Go Reference

Purpose

"fsadapter" provides write-only adapters to various destinations. There are currently 2 adapters:

  • Directory
  • ZIP

It is meant to be a drop-in replacement for os.* functions for Slackdump.

Details

Each adapter exposes the following methods:

  • Create(string) (io.WriteCloser, error)
  • WriteFile(name string, data []byte, perm os.FileMode) error
  • Close() error

Testing

If you need to use a mock of "fsadapter.FSCloser", it's in the mocks/mock_fsadapter package.

About

fsadapter - wrapper for writing files into directories or ZIP archives

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

0