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 GetLongPathFixed(givenAbsolutePath string, isForce bool) string
- func GetLongPathFixedPtr(separator string, givenAbsolutePath string, isForce bool) string
- func IsEmptyPath(path string) bool
- func IsEmptyPathPtr(path *string) bool
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChangeDoubleBackSlash ¶
func ChangeSeparator ¶
func GetCompiledPath ¶
func 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 GetLongPathFixedPtr ¶
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 IsEmptyPath ¶
func IsEmptyPathPtr ¶
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 ¶
Types ¶
This section is empty.