Documentation ¶
Index ¶
- func Checksum32(path string) uint32
- func Copy(src, dest string) error
- func Equal(fid1, fid2 FID) bool
- func Exists(path string) bool
- func Hash(hasher hash.Hash, path string) ([]byte, error)
- func HashStr(hasher hash.Hash, path string) (string, error)
- func IsDir(path string) bool
- func NormalizePath(path string) string
- type ExFileInfo
- type FID
- type TarReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Checksum32 ¶
Checksum32 create a crc32 checksum for file at path.
func HashStr ¶
HashStr creates a hexadecimal string of the hash of the file at path using the specified Hash.
func NormalizePath ¶
NormalizePath converts all slashes in a path to '/' (forward) slashes
Types ¶
type ExFileInfo ¶
type ExFileInfo interface { os.FileInfo // Support the os.FileInfo interface Path() string // Full path of file CTime() time.Time // Creation time ATime() time.Time // Last access time FID() FID // System independent File ID }
ExFileInfo is an extended version of the os.FileInfo interface that includes additional information.
func ExStat ¶
func ExStat(path string) (fileInfo ExFileInfo, err error)
ExStat is an extended version of the os.Stat() method.
type FID ¶
FID represents a file identifier. On Linux it is the INode. On Windows it is the file index and volume serial number.
type TarReader ¶
type TarReader struct {
// contains filtered or unexported fields
}
TarReader type contains all the artifacts needed to unpack a tar file.
Click to show internal directories.
Click to hide internal directories.