package
Version:
v4.3.4
Opens a new window with list of versions in this module.
Published: Jan 15, 2024
License: AGPL-3.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type FileInfo struct {
tree.N
}
FileInfo wraps a tree.Node as a posix os.FileInfo
NewFileInfo wraps a tree.N as posix FileInfo
IsDir returns the opposite of node.IsLeaf()
ModTime returns a time.Time from the node timestamp
Mode computes an os.FileMode based on the node.Type value
Name returns the basename of the current file
Size returns the node.GetSize() value
String implements Stringer for the current FileInfo
Sys returns the underlying *tree.Node
Source Files
¶
Click to show internal directories.
Click to hide internal directories.