Documentation
¶
Overview ¶
Package fs defines virtual filesystem abstractions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrEntryNotFound = errors.New("entry not found")
ErrEntryNotFound is returned when an entry is not found.
Functions ¶
This section is empty.
Types ¶
type Directory ¶
type Directory interface {
Entry
Child(ctx context.Context, name string) (Entry, error)
Readdir(ctx context.Context) (Entries, error)
Summary() *DirectorySummary
}
Directory represents contents of a directory.
type DirectorySummary ¶
type DirectorySummary struct {
TotalFileSize int64 `json:"size"`
TotalFileCount int64 `json:"files"`
TotalDirCount int64 `json:"dirs"`
MaxModTime time.Time `json:"maxTime"`
IncompleteReason string `json:"incomplete,omitempty"`
}
DirectorySummary represents summary information about a directory.
type Entries ¶
type Entries []Entry
Entries is a list of entries sorted by name.
func (Entries) FindByName ¶
FindByName returns an entry with a given name, or nil if not found.
type Entry ¶
Entry represents a filesystem entry, which can be Directory, File, or Symlink
func ReadDirAndFindChild ¶ added in v0.4.0
ReadDirAndFindChild reads all entries from a directory and returns one by name. This is a convenience function that may be helpful in implementations of Directory.Child()
Directories
¶
| Path | Synopsis |
|---|---|
|
Package cachefs implements a wrapper that caches filesystem actions.
|
Package cachefs implements a wrapper that caches filesystem actions. |
|
Package ignorefs implements a wrapper that hides ignored files listed in '.kopiaignore' and in policies attached to directories.
|
Package ignorefs implements a wrapper that hides ignored files listed in '.kopiaignore' and in policies attached to directories. |
|
Package localfs implements virtual filesystem abstraction for a local filesystem.
|
Package localfs implements virtual filesystem abstraction for a local filesystem. |
|
Package loggingfs implements a wrapper that logs all filesystem actions.
|
Package loggingfs implements a wrapper that logs all filesystem actions. |
Click to show internal directories.
Click to hide internal directories.