Versions in this module Expand all Collapse all v1 v1.0.0 Feb 27, 2024 Changes in this version + func Check(source string, destination string) error + func Dir(p string) string + func Split(p string) []string + type LocalDirectoryEntry struct + func (lde *LocalDirectoryEntry) IsDir() bool + func (lde *LocalDirectoryEntry) MarshalJSON() ([]byte, error) + func (lde *LocalDirectoryEntry) ModTime() time.Time + func (lde *LocalDirectoryEntry) Name() string + func (lde *LocalDirectoryEntry) Size() int64 + func (lde *LocalDirectoryEntry) String() string + type LocalFile struct + func NewLocalFile(file afero.File) *LocalFile + func (lf *LocalFile) Close() error + func (lf *LocalFile) Name() string + func (lf *LocalFile) Read(s []byte) (int, error) + func (lf *LocalFile) Seek(offset int64, whence int) (int64, error) + func (lf *LocalFile) Write(s []byte) (int, error) + func (lf *LocalFile) WriteAt(s []byte, o int64) (int, error) + func (lf *LocalFile) WriteTo(ctx context.Context, w fs.Writer) (int64, error) + type LocalFileInfo struct + func NewLocalFileInfo(name string, modTime time.Time, dir bool, size int64) *LocalFileInfo + func (fi *LocalFileInfo) IsDir() bool + func (fi *LocalFileInfo) ModTime() time.Time + func (fi *LocalFileInfo) Name() string + func (fi *LocalFileInfo) Size() int64 + func (fi *LocalFileInfo) String() string + type LocalFileSystem struct + func NewLocalFileSystem(rootPath string) *LocalFileSystem + func NewReadOnlyLocalSystem(rootPath string) *LocalFileSystem + func (lfs *LocalFileSystem) Chtimes(ctx context.Context, name string, atime time.Time, mtime time.Time) error + func (lfs *LocalFileSystem) Copy(ctx context.Context, input *fs.CopyInput) error + func (lfs *LocalFileSystem) Dir(name string) string + func (lfs *LocalFileSystem) IsNotExist(err error) bool + func (lfs *LocalFileSystem) Join(name ...string) string + func (lfs *LocalFileSystem) MagicNumber(ctx context.Context, name string) ([]byte, error) + func (lfs *LocalFileSystem) MagicNumbers(ctx context.Context, names []string, threads int) ([][]byte, error) + func (lfs *LocalFileSystem) MkdirAll(ctx context.Context, name string, mode os.FileMode) error + func (lfs *LocalFileSystem) MustRelative(ctx context.Context, base string, target string) string + func (lfs *LocalFileSystem) Open(ctx context.Context, name string) (fs.Object, error) + func (lfs *LocalFileSystem) OpenFile(ctx context.Context, name string, flag int, perm os.FileMode) (fs.File, error) + func (lfs *LocalFileSystem) OpenObject(ctx context.Context, name string, flag int, perm os.FileMode) (fs.Object, error) + func (lfs *LocalFileSystem) ReadDir(ctx context.Context, name string, recursive bool) ([]fs.DirectoryEntryInterface, error) + func (lfs *LocalFileSystem) ReadFile(ctx context.Context, name string, data []byte) (int, error) + func (lfs *LocalFileSystem) Relative(ctx context.Context, basepath string, targetpath string) (string, error) + func (lfs *LocalFileSystem) RemoveDirectories(ctx context.Context, names []string, recursive bool) error + func (lfs *LocalFileSystem) RemoveDirectory(ctx context.Context, name string, recursive bool) error + func (lfs *LocalFileSystem) RemoveFile(ctx context.Context, name string) error + func (lfs *LocalFileSystem) RemoveFiles(ctx context.Context, names []string) error + func (lfs *LocalFileSystem) Root() string + func (lfs *LocalFileSystem) Size(ctx context.Context, name string) (int64, error) + func (lfs *LocalFileSystem) Stat(ctx context.Context, name string) (fs.FileInfo, error) + func (lfs *LocalFileSystem) Sync(ctx context.Context, input *fs.SyncInput) (int, error) + func (lfs *LocalFileSystem) SyncDirectory(ctx context.Context, input *fs.SyncDirectoryInput) (int, error)