ispath

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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllDirectories added in v0.5.1

func AllDirectories(paths ...string) bool

AllDirectories returns false if is not dir

func AllExist added in v0.0.5

func AllExist(paths ...string) bool

AllExist returns false if any of the path not exists

func AllFiles added in v0.5.1

func AllFiles(paths ...string) bool

AllFiles returns false if is not file

func AllNotExist added in v0.0.5

func AllNotExist(paths ...string) bool

AllNotExist returns false if any of the paths exists

func AnyExists added in v0.0.5

func AnyExists(paths ...string) bool

AnyExists Returns true if any of the paths exists

func Directory added in v0.0.5

func Directory(path string) bool

func Empty

func Empty(path string) bool

func EmptyPtr

func EmptyPtr(path *string) bool

func Equal added in v0.4.8

func Equal(
	isCaseSensitive bool,
	leftPath, rightPath string,
) bool

func EqualString added in v0.5.2

func EqualString(
	isApplyNormalize bool,
	left, right string,
) bool

func Exists added in v0.0.5

func Exists(location string) bool

func File added in v0.0.5

func File(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

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 NotEqualFileInfo added in v0.5.2

func NotEqualFileInfo(
	left, right os.FileInfo,
) bool

func NotEqualFileInfoDetailed added in v0.5.2

func NotEqualFileInfoDetailed(
	isQuickVerifyOnPathEqual,
	isPathMustMatchIfDir,
	isVerifyContent bool,
	leftFullPath, rightFullPath string,
	left, right os.FileInfo,
) bool

func NotEqualString added in v0.5.2

func NotEqualString(
	isApplyNormalize bool,
	left, right string,
) bool

func NotExists added in v0.0.5

func NotExists(path 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