Documentation ¶
Overview ¶
Package localfs implements virtual filesystem abstraction for a local filesystem.
Index ¶
Constants ¶
const (
// ShallowEntrySuffix is a suffix identifying placeholder files.
ShallowEntrySuffix = ".kopia-entry"
)
Variables ¶
This section is empty.
Functions ¶
func NewEntry ¶
NewEntry returns fs.Entry for the specified path, the result will be one of supported entry types: fs.File, fs.Directory, fs.Symlink or fs.UnsupportedEntry.
func TrimShallowSuffix ¶ added in v0.9.0
TrimShallowSuffix returns the path without the placeholder suffix.
func WriteShallowPlaceholder ¶ added in v0.9.0
WriteShallowPlaceholder writes sufficient metadata into the placeholder file associated with path so that it can be roundtripped through snapshot/restore without needing to be realized in the local filesystem. TODO(rjk): Should the placeholder use the complete fs.Entry?
Types ¶
type PlaceholderFilePath ¶ added in v0.9.0
type PlaceholderFilePath string
PlaceholderFilePath is a filesystem path of a shallow placeholder file or directory.
func (PlaceholderFilePath) DirEntryOrNil ¶ added in v0.9.0
DirEntryOrNil returns the snapshot.DirEntry corresponding to this PlaceholderFilePath.