Documentation ¶
Index ¶
- Constants
- Variables
- func ChangeDoubleBackSlash(path, changeSeparator string) string
- func ChangeDoubleForwardSlash(path, changeSeparator string) string
- func ChangeSeparator(path, currentSeparator, changeSeparator string) string
- func DbPath(path string) string
- func GetCompiledPath(pathTemplate string, compilingMap map[string]string) string
- func GetFilterPathsInfoMap(isNormalize, isSkipOnInvalid bool, locations []string) *chmodhelper.FilteredPathFileInfoMap
- func HasPrefix(cleanedPrefix, cleanAbsolutePath string) bool
- func JoinNormalizedPaths(baseLocation string, locations ...string) string
- func LongPathFixPlusClean(isForceLongPathFix bool, givenPath string) string
- func Path(givenPath string) string
- func PathFixWithoutLongPathIf(isNormalize bool, givenPath string) string
- func PathIf(isNormalize bool, givenPath string) 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 PathsUsingOptions(options *Options, locations []string) []string
- func PathsUsingOptionsAsync(options *Options, locations ...string) []string
- func PathsUsingSingleIf(isNormalizeLongPathForce bool, locations []string) []string
- func PathsUsingSingleIfAsync(isNormalizeLongPathForce bool, locations []string) []string
- func SimpleBaseDirJoinPaths(baseDir string, locations ...string) string
- func SimpleJoinPath(path1, path2 string) string
- func SimpleJoinPath3(path1, path2, path3 string) string
- func SimpleJoinPaths(locations ...string) string
- func TrimPrefixRoot(source, rootTrimmingPrefix string) string
- func TrimPrefixUncPath(givenPath string) string
- func TrimPrefixUncPathIf(isSkipOnUnix bool, givenPath string) string
- func TrimPrefixUncPaths(isSkipOnUnix bool, locations ...string) []string
- func TrimPrefixes(givenPath string, trimPrefixes ...string) string
- type Options
- func (it Options) FixPath(path string) string
- func (it Options) IsAllOptionsDisabled() bool
- func (it Options) JoinPath(path1, path2 string) string
- func (it Options) JoinPath3(path1, path2, path3 string) string
- func (it Options) JoinPaths(locations ...string) string
- func (it Options) JoinWithBaseDirPaths(baseDir string, locations ...string) string
Constants ¶
View Source
const ( WindowsPathSeparator = constants.BackSlash UnixPathSeparator = constants.ForwardSlash )
Variables ¶
View Source
var (
PathSeparatorChar = byte(os.PathSeparator)
)
Functions ¶
func ChangeDoubleBackSlash ¶
func ChangeSeparator ¶
func GetCompiledPath ¶
func GetFilterPathsInfoMap ¶ added in v0.1.3
func GetFilterPathsInfoMap( isNormalize, isSkipOnInvalid bool, locations []string, ) *chmodhelper.FilteredPathFileInfoMap
func JoinNormalizedPaths ¶ added in v0.1.3
func LongPathFixPlusClean ¶ added in v0.4.6
func PathFixWithoutLongPathIf ¶ added in v0.3.9
func PathUsingSeparatorIf ¶
func PathUsingSingleIf ¶ added in v0.1.3
func PathsOnConditions ¶ added in v0.1.2
func PathsUsingOptions ¶ added in v0.4.0
func PathsUsingOptionsAsync ¶ added in v0.4.0
func PathsUsingSingleIf ¶ added in v0.1.3
func PathsUsingSingleIfAsync ¶ added in v0.1.3
func SimpleBaseDirJoinPaths ¶ added in v0.4.0
func SimpleJoinPath ¶ added in v0.4.0
func SimpleJoinPath3 ¶ added in v0.4.0
func SimpleJoinPaths ¶ added in v0.4.0
func TrimPrefixRoot ¶ added in v0.4.3
func TrimPrefixUncPath ¶ added in v0.4.0
func TrimPrefixUncPathIf ¶ added in v0.4.3
func TrimPrefixUncPaths ¶ added in v0.4.3
func TrimPrefixes ¶ added in v0.4.0
Types ¶
type Options ¶ added in v0.4.0
type Options struct { IsNormalize, IsLongPathFix, IsForceLongPathFix bool }
func NewOptionsAllTrue ¶ added in v0.4.0
func NewOptionsAllTrue() *Options
func (Options) IsAllOptionsDisabled ¶ added in v0.4.0
Source Files ¶
- ChangeDoubleBackSlash.go
- ChangeDoubleForwardSlash.go
- ChangeSeparator.go
- DbPath.go
- GetCompiledPath.go
- GetFilterPathsInfoMap.go
- HasPrefix.go
- JoinNormalizedPaths.go
- LongPathFixPlusClean.go
- Options.go
- Path.go
- PathFixWithoutLongPathIf.go
- PathIf.go
- PathUsingSeparatorIf.go
- PathUsingSeparatorUsingAllIf.go
- PathUsingSingleIf.go
- PathsOnConditions.go
- PathsUsingOptions.go
- PathsUsingOptionsAsync.go
- PathsUsingSingleIf.go
- PathsUsingSingleIfAsync.go
- SimpleBaseDirJoinPaths.go
- SimpleJoinPath.go
- SimpleJoinPath3.go
- SimpleJoinPaths.go
- TrimPrefixRoot.go
- TrimPrefixUncPath.go
- TrimPrefixUncPathIf.go
- TrimPrefixUncPaths.go
- TrimPrefixes.go
- consts.go
- getLongPathFixed.go
- getLongPathFixedUsingSeparator.go
- pathUsingSeparator.go
- removeAndFixDoubleSeparatorToFinalSeparator.go
- unixFix.go
- vars.go
Click to show internal directories.
Click to hide internal directories.