Documentation ¶
Index ¶
- func ChangeDoubleBackSlash(path, changeSeparator string) string
- func ChangeDoubleForwardSlash(path, changeSeparator string) string
- func ChangeSeparator(path, currentSeparator, changeSeparator string) string
- func GetCompiledPath(pathTemplate string, compilingMap map[string]string) string
- func GetFilterPathsInfoMap(isNormalize, isSkipOnInvalid bool, locations []string) *chmodhelper.FilteredPathFileInfoMap
- func GetLongPathFixed(givenAbsolutePath string, isForce bool) string
- func GetLongPathFixedUsingSeparator(separator string, givenAbsolutePath string, isForce bool) string
- func JoinNormalizedPaths(baseLocation string, locations ...string) string
- func LongPathForce(givenPath string) string
- func Path(givenPath string) string
- func PathUsingSeparator(pathSeparator, givenPath string, isLongPathFix bool, isForceLongPath bool) string
- func PathUsingSeparatorIf(isForceLongPath, isLongPathFix, isNormalize bool, ...) string
- func PathUsingSeparatorUsingSingleIf(isNormalizeLongPathForce bool, pathSeparator, givenPath string) string
- func PathUsingSingleIf(isNormalizeLongPathForce bool, givenPath string) string
- func PathsOnConditions(isNormalize bool, locations []string) []string
- func PathsUsingSingleIf(isNormalizeLongPathForce bool, locations []string) []string
- func PathsUsingSingleIfAsync(isNormalizeLongPathForce bool, locations []string) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChangeDoubleBackSlash ¶
func ChangeSeparator ¶
func GetCompiledPath ¶
func GetFilterPathsInfoMap ¶ added in v0.1.3
func GetFilterPathsInfoMap( isNormalize, isSkipOnInvalid bool, locations []string, ) *chmodhelper.FilteredPathFileInfoMap
func GetLongPathFixed ¶
GetLongPathFixed Adds constants.LongPathQuestionMarkPrefix if path is longer than 255 and doesn't already contains it. Ignores prefix apply if already has it (constants.LongPathUncPrefix or constants.LongPathQuestionMarkPrefix ) or path is empty or length less than 255 if path starts with `\\` then replaces with constants.LongPathUncPrefix
func GetLongPathFixedUsingSeparator ¶ added in v0.1.3
func GetLongPathFixedUsingSeparator( separator string, givenAbsolutePath string, isForce bool, ) string
Adds constants.LongPathQuestionMarkPrefix if path is longer than 255 and doesn't already contains it. Ignores prefix apply if already has it (constants.LongPathUncPrefix or constants.LongPathQuestionMarkPrefix ) or path is empty or length less than 255 if path starts with `\\` then replaces with constants.LongPathUncPrefix
func JoinNormalizedPaths ¶ added in v0.1.3
func LongPathForce ¶ added in v0.2.8
LongPathForce By default apply
long path fix, force long path fix on windows and regular normalize using os.PathSeparator
func PathUsingSeparator ¶
func PathUsingSeparator( pathSeparator, givenPath string, isLongPathFix bool, isForceLongPath bool, ) string
Always returns path without the separator at the end. Separator must be one char. Long path fix will not be applied other than Windows operating system.
func PathUsingSeparatorIf ¶
func PathUsingSingleIf ¶ added in v0.1.3
func PathsOnConditions ¶ added in v0.1.2
func PathsUsingSingleIf ¶ added in v0.1.3
func PathsUsingSingleIfAsync ¶ added in v0.1.3
Types ¶
This section is empty.
Source Files ¶
- ChangeDoubleBackSlash.go
- ChangeDoubleForwardSlash.go
- ChangeSeparator.go
- GetCompiledPath.go
- GetFilterPathsInfoMap.go
- GetLongPathFixed.go
- GetLongPathFixedUsingSeparator.go
- JoinNormalizedPaths.go
- LongPathForce.go
- Path.go
- PathUsingSeparator.go
- PathUsingSeparatorIf.go
- PathUsingSeparatorUsingAllIf.go
- PathUsingSingleIf.go
- PathsOnConditions.go
- PathsUsingSingleIf.go
- PathsUsingSingleIfAsync.go
- isEmpty.go
- removeAndFixDoubleSeparatorToFinalSeparator.go
- vars.go