Documentation
¶
Index ¶
- func CollectFileMetadata(rootPath, path string, fileInfo fs.FileInfo, isDirectory bool, ...) error
- func RestoreDirectoryInfo(dir DirectoryInfo, rootDir string) error
- func RestoreFileInfo(fi FileInfo, rootDir string, logger log.Logger) bool
- func RestoreSymlink(symlink SymlinkInfo, logger log.Logger) bool
- func SetAttributes(path string, attributes map[string]string) error
- type DirectoryInfo
- type FileInfo
- type Info
- type SymlinkInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CollectFileMetadata ¶
func RestoreDirectoryInfo ¶
func RestoreDirectoryInfo(dir DirectoryInfo, rootDir string) error
func RestoreSymlink ¶
func RestoreSymlink(symlink SymlinkInfo, logger log.Logger) bool
Types ¶
type DirectoryInfo ¶
type Info ¶
type Info struct { Files []*FileInfo `json:"files"` Directories []*DirectoryInfo `json:"directories"` Symlinks []*SymlinkInfo `json:"symlinks,omitempty"` }
Click to show internal directories.
Click to hide internal directories.