Documentation
¶
Index ¶
- type Dir
- func (d *Dir) Del(path string)
- func (d *Dir) Get(path string) *FileInfo
- func (d *Dir) GetAllPaths(ctx context.Context) <-chan string
- func (d *Dir) MatchOsInfo(path string, info os.FileInfo) bool
- func (d *Dir) Put(path string, f *FileInfo)
- func (d *Dir) Save(ctx context.Context, filename string) error
- type FileInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dir ¶
Dir is a container for other Dirs and FileInfo structs
func (*Dir) GetAllPaths ¶
GetAllPaths returns a channel that will be populated with every path within the Directory The channel will be closed after all paths have been written.
func (*Dir) MatchOsInfo ¶
MatchOsInfo checks whether the given path in the Directory matches the file info in the provided os.FileInfo. true is returned if the path exists and it matches the Size, ModTime and Mode of the provided os.FileInfo Otherwise, false is returned.
Click to show internal directories.
Click to hide internal directories.