Documentation ¶
Index ¶
- func AllDirectories(paths ...string) bool
- func AllExist(paths ...string) bool
- func AllFiles(paths ...string) bool
- func AllNotExist(paths ...string) bool
- func AnyExists(paths ...string) bool
- func Directory(path string) bool
- func Empty(path string) bool
- func EmptyPtr(path *string) bool
- func Equal(isCaseSensitive bool, leftPath, rightPath string) bool
- func EqualString(isApplyNormalize bool, left, right string) bool
- func Exists(location string) bool
- func File(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 NotEqualFileInfo(left, right os.FileInfo) bool
- func NotEqualFileInfoDetailed(isQuickVerifyOnPathEqual, isPathMustMatchIfDir, isVerifyContent bool, ...) bool
- func NotEqualString(isApplyNormalize bool, left, right string) bool
- func NotExists(path string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllDirectories ¶ added in v0.5.1
AllDirectories returns false if is not dir
func AllNotExist ¶ added in v0.0.5
AllNotExist returns false if any of the paths exists
func EqualString ¶ added in v0.5.2
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
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 NotEqualFileInfo ¶ added in v0.5.2
func NotEqualFileInfoDetailed ¶ added in v0.5.2
func NotEqualString ¶ added in v0.5.2
Types ¶
This section is empty.
Source Files ¶
- AllDirectories.go
- AllExist.go
- AllFiles.go
- AllNotExist.go
- AnyExists.go
- Directory.go
- Empty.go
- EqualString.go
- Exists.go
- File.go
- FileContentEqual.go
- FileContentEqualWithoutCheckingPathEqual.go
- FileInfoDetailedEqual.go
- FileInfoEqual.go
- NotEqualFileInfo.go
- NotEqualFileInfoDetailed.go
- NotEqualString.go
- NotExists.go
Click to show internal directories.
Click to hide internal directories.