Documentation ¶
Index ¶
- type ZipFs
- func (fs *ZipFs) Chmod(name string, mode os.FileMode) error
- func (fs *ZipFs) Chtimes(name string, atime time.Time, mtime time.Time) error
- func (fs *ZipFs) Close() error
- func (fs *ZipFs) Create(name string) (afero.File, error)
- func (fs *ZipFs) Mkdir(name string, perm os.FileMode) error
- func (fs *ZipFs) MkdirAll(path string, perm os.FileMode) error
- func (fs *ZipFs) Name() string
- func (fs *ZipFs) Open(name string) (afero.File, error)
- func (fs *ZipFs) OpenFile(name string, flag int, perm os.FileMode) (afero.File, error)
- func (fs *ZipFs) Remove(name string) error
- func (fs *ZipFs) RemoveAll(path string) error
- func (fs *ZipFs) Rename(oldname, newname string) error
- func (fs *ZipFs) Stat(name string) (os.FileInfo, error)
- type ZipReadItem
- type ZipWriteItem
- func (item ZipWriteItem) Close() error
- func (item ZipWriteItem) Name() string
- func (item ZipWriteItem) Read(b []byte) (n int, err error)
- func (item ZipWriteItem) ReadAt(b []byte, off int64) (n int, err error)
- func (item ZipWriteItem) Readdir(count int) ([]os.FileInfo, error)
- func (item ZipWriteItem) Readdirnames(n int) ([]string, error)
- func (item ZipWriteItem) Seek(offset int64, whence int) (ret int64, err error)
- func (item ZipWriteItem) Stat() (os.FileInfo, error)
- func (item ZipWriteItem) Sync() error
- func (item ZipWriteItem) Truncate(size int64) error
- func (item ZipWriteItem) WriteAt(b []byte, off int64) (n int, err error)
- func (item ZipWriteItem) WriteString(s string) (n int, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ZipFs ¶
type ZipFs struct {
// contains filtered or unexported fields
}
func NewWriteZipFs ¶
func (*ZipFs) Create ¶
Create creates a file in the filesystem, returning the file and an error, if any happens.
func (*ZipFs) Remove ¶
Remove removes a file identified by name, returning an error, if any happens.
func (*ZipFs) RemoveAll ¶
RemoveAll removes a directory path and any children it contains. It does not fail if the path does not exist (return nil).
type ZipReadItem ¶
type ZipReadItem struct { *zip.File *aferotools.ReadOnlyFile }
func (ZipReadItem) Name ¶
func (item ZipReadItem) Name() string
type ZipWriteItem ¶
func (ZipWriteItem) Close ¶
func (item ZipWriteItem) Close() error
func (ZipWriteItem) Name ¶
func (item ZipWriteItem) Name() string
func (ZipWriteItem) ReadAt ¶
func (item ZipWriteItem) ReadAt(b []byte, off int64) (n int, err error)
func (ZipWriteItem) Readdirnames ¶
func (item ZipWriteItem) Readdirnames(n int) ([]string, error)
func (ZipWriteItem) Seek ¶
func (item ZipWriteItem) Seek(offset int64, whence int) (ret int64, err error)
func (ZipWriteItem) Sync ¶
func (item ZipWriteItem) Sync() error
func (ZipWriteItem) Truncate ¶
func (item ZipWriteItem) Truncate(size int64) error
func (ZipWriteItem) WriteAt ¶
func (item ZipWriteItem) WriteAt(b []byte, off int64) (n int, err error)
func (ZipWriteItem) WriteString ¶
func (item ZipWriteItem) WriteString(s string) (n int, err error)
Click to show internal directories.
Click to hide internal directories.