ispathinternal

package
v0.7.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllNotExists

func AllNotExists(paths ...string) bool

AllNotExists if any not exist return false

func DirectoryPlusFileInfo added in v0.5.2

func DirectoryPlusFileInfo(location string) (isSuccess bool, fileInfo os.FileInfo)

func EmptyArray

func EmptyArray(paths []string) bool

func EmptyArrayPtr

func EmptyArrayPtr(paths []*string) bool

func Equal added in v0.5.2

func Equal(
	isQuickVerifyOnPathEqual,
	isPathMustMatchIfDir,
	isVerifyContent bool,
	leftFullPath, rightFullPath string,
) bool

func Exists

func Exists(path string) bool

func FileContentEqual added in v0.5.2

func FileContentEqual(leftFullPath string, rightFullPath string) bool

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 FileContentEqualWithoutCheckingPathEqual(
	leftFullPath string,
	rightFullPath string,
) bool

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 FileInfoEqual(
	left, right os.FileInfo,
) bool

func IsDirectory added in v0.1.2

func IsDirectory(location string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL