Documentation ¶
Index ¶
- func AllNotExists(paths ...string) bool
- func DirectoryPlusFileInfo(location string) (isSuccess bool, fileInfo os.FileInfo)
- func EmptyArray(paths []string) bool
- func EmptyArrayPtr(paths []*string) bool
- func Equal(isQuickVerifyOnPathEqual, isPathMustMatchIfDir, isVerifyContent bool, ...) bool
- func Exists(path string) bool
- func FileContentEqual(leftFullPath string, rightFullPath string) bool
- func FileContentEqualWithoutCheckingPathEqual(leftFullPath string, rightFullPath string) bool
- func FileInfoDetailedEqual(isQuickVerifyOnPathEqual, isPathMustMatchIfDir, isVerifyContent bool, ...) bool
- func FileInfoEqual(left, right os.FileInfo) bool
- func IsDirectory(location string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllNotExists ¶
AllNotExists if any not exist return false
func DirectoryPlusFileInfo ¶ added in v0.5.2
func EmptyArray ¶
func EmptyArrayPtr ¶
func FileContentEqual ¶ added in v0.5.2
FileContentEqual
Returns false if contents are not equal at any point ¶
Reference : https://stackoverflow.com/a/30038571
func FileContentEqualWithoutCheckingPathEqual ¶ added in v0.5.2
FileContentEqualWithoutCheckingPathEqual
FileContentEqual ¶
Returns false if contents are not equal at any point ¶
Reference : https://stackoverflow.com/a/30038571
func FileInfoDetailedEqual ¶ added in v0.5.2
func FileInfoDetailedEqual( isQuickVerifyOnPathEqual, isPathMustMatchIfDir, isVerifyContent bool, leftFullPath, rightFullPath string, left, right os.FileInfo, ) bool
FileInfoDetailedEqual
Conditions :
- isQuickVerifyOnPathEqual : true represents quick return true if path is equal (in terms of string)
- isPathMustMatchIfDir : true represents must match path if it is a dir.
- isVerifyContent : true represents contents bytes will be verified.
func FileInfoEqual ¶ added in v0.5.2
func IsDirectory ¶ added in v0.1.2
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.