Documentation ¶
Index ¶
- func AllDirSplits(currentPath string) (baseDirNames *[]string)
- func AllDirSplitsWithSep(currentPath, separator string) (baseDirNames *[]string)
- func ArgumentsJoin(args ...string) string
- func ArgumentsJoinSlice(args []string) string
- func GetAbsoluteFromExecutableDirectoryPath(relativePath string, isLongPathFix, isNormalize bool) string
- func GetAbsolutePath(basePath, relativePath string, isLongPathFix, isNormalize bool) string
- func GetAbsolutePaths(basePath string, isLongPathFix, isNormalize bool, relativePaths ...string) *[]string
- func GetAbsolutePathsOfPtr(basePath string, isLongPathFix, isNormalize bool, relativePaths *[]string) *[]string
- func GetAsyncProcessed(processingPaths *[]string, processor pathfuncs.Processor) *[]string
- func GetBaseDir(currentPath string) (baseDir string)
- func GetBaseDirNames(currentPath string) (baseDirNames *[]string)
- func GetCombinePathFromGoPath(pathConfig *pathhelpercore.PathConfig, givenPaths ...string) string
- func GetCombinePathsWith(paths ...string) string
- func GetCombinePathsWithPtr(paths *[]string) string
- func GetCombinedOfNonEmptyPaths(separator string, paths []string) string
- func GetCombinedPath(separator string, isIgnoreEmptyPath bool, isLongPathFix bool, isNormalize bool, ...) string
- func GetCombinedPathUsingConfig(pathConfig *pathhelpercore.PathConfig, paths ...string) string
- func GetCompiledPath(pathTemplate string, compilingMap *map[string]string) string
- func GetDotExtension(currentPath string) string
- func GetEachPathConvertedToFileInfoWrapper(separator string, fullPaths *[]string) *[]*fileinfo.Wrapper
- func GetExecutableCombinePath(paths ...string) string
- func GetExecutableDirectory() string
- func GetExecutablePath() string
- func GetExtensions(currentPath string) (dotExt, ext string)
- func GetExtensionsWithoutDot(currentPath string) string
- func GetFileInfoWrapper(path string) *fileinfo.Wrapper
- func GetFileInfoWrappersArrayOf(separator string, fullPaths *[]string, isNormalize bool) *[]*fileinfo.Wrappers
- func GetFileInfoWrappersFrom(path string, isNormalize bool) *fileinfo.Wrappers
- func GetFileInfoWrappersFromUsingSeparator(path, separator string, isNormalize bool) *fileinfo.Wrappers
- func GetFileNameWithExt(currentPath string) (fileName string)
- func GetFileNameWithoutExt(currentPath string) (filename string)
- func GetFileNames(path string, isNormalize bool) *fileinfo.FileNamesCollection
- func GetFilenamePlusBothExtensions(currentPath string) (fileName, dotExt, ext string)
- func GetLongPathFixed(isForce bool, givenAbsolutePath string) string
- func GetLongPathsFixedOf(isForce bool, pathSeparator string, givenAbsolutePaths ...string) *[]string
- func GetLongPathsFixedOfPtr(isForce bool, pathSeparator string, givenAbsolutePaths *[]string) *[]string
- func GetOsFileInfos(allPaths *[]string) (infos *[]os.FileInfo, errsCollection *errwrappers.Collection)
- func GetOsFileInfosCollection(allPaths *[]string) (infos *osfileinfos.Collection, errsCollection *errwrappers.Collection)
- func GetParentDir(location string) string
- func GetPathAsUri(path string, isNormalizePath bool) string
- func GetPathAsUrisOf(isNormalizePath bool, paths ...string) *[]string
- func GetPathAsUrisOfPtr(isNormalizePath bool, paths *[]string) *[]string
- func GetPathFromUri(path string, isNormalizePath bool) string
- func GetRelativePath(fullPath, basePath string) string
- func GetRelativePaths(rootPath string, fullPaths ...string) *[]string
- func GetRelativePathsOfPtr(rootPath string, fullPaths *[]string) *[]string
- func GetSlug(path, separatorOfChoice string) string
- func GetSlugsOf(separatorOfChoice string, paths ...string) *[]string
- func GetSlugsOfPtr(separatorOfChoice string, paths *[]string) *[]string
- func GetWithoutSlash(currentPath string) (baseDir, fileName string)
- func IndexOfDotFromLastFileName(currentPath string) (fileName string, index int)
- func IsDir(location string) bool
- func IsExistButDirectory(location string) bool
- func IsGoModuleOn() bool
- func IsPathExists(location string) bool
- func IsSymbolicLink(path string) bool
- func RemoveDoubleUriSeparator(path, separator string) string
- func RemoveFromPath(pathTemplate string, removingList *[]string, isNormalizePath bool) string
- func Split(currentPath string) (baseDir, fileName string)
- func SplitWithoutSlash(currentPath string) (baseDir, fileName string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllDirSplits ¶ added in v0.0.6
func AllDirSplitsWithSep ¶ added in v0.0.6
func ArgumentsJoin ¶ added in v0.1.0
func ArgumentsJoinSlice ¶ added in v0.1.0
func GetAbsolutePath ¶
func GetAbsolutePaths ¶
func GetAbsolutePathsOfPtr ¶
func GetAsyncProcessed ¶
Don't modify existing paths and creates new one.
func GetBaseDir ¶
No slash at the end reference example : https://play.golang.org/p/oT6eWNZAeEi
func GetBaseDirNames ¶ added in v0.0.6
func GetCombinePathFromGoPath ¶
func GetCombinePathFromGoPath( pathConfig *pathhelpercore.PathConfig, givenPaths ...string, ) string
By defaultPathConfig: Separator = os.PathSeparator IsNormalize = true IsIgnoreEmptyPath = false
func GetCombinePathsWith ¶
Returns path as string after combining all provided paths By default isIgnorePath: true, isNormalize: true, and Path separator depends on the OS
func GetCombinePathsWithPtr ¶
Returns path as string after combining all provided paths By default isIgnorePath: true, isNormalize: true, and Path separator depends on the OS
func GetCombinedPath ¶
func GetCombinedPath( separator string, isIgnoreEmptyPath bool, isLongPathFix bool, isNormalize bool, paths ...string, ) string
@isIgnoreEmptyPath if true then ignore empty string (nil, "", or any empty spaces " ")
func GetCombinedPathUsingConfig ¶
func GetCombinedPathUsingConfig(pathConfig *pathhelpercore.PathConfig, paths ...string) string
if pathConfig is nil then pathConfig gets created pathhelpercore.NewDefaultPathConfig() By NewDefaultPathConfig: Separator = os.PathSeparator IsNormalize = true IsIgnoreEmptyPath = false
func GetCompiledPath ¶
func GetDotExtension ¶ added in v0.0.4
func GetEachPathConvertedToFileInfoWrapper ¶
func GetEachPathConvertedToFileInfoWrapper(separator string, fullPaths *[]string) *[]*fileinfo.Wrapper
For each path converted to file info wrapper and finally returns as an array.
func GetExecutableCombinePath ¶
Get the final path exePath + ....
func GetExecutableDirectory ¶
func GetExecutableDirectory() string
Represents the directory where the application is running from. Returns without slash
func GetExecutablePath ¶
func GetExecutablePath() string
Represents the exact path to the executable file Exact path to the executable not the path but the file.
func GetExtensions ¶ added in v0.0.4
func GetExtensionsWithoutDot ¶ added in v0.0.4
func GetFileInfoWrapper ¶
func GetFileInfoWrappersArrayOf ¶
func GetFileInfoWrappersArrayOf( separator string, fullPaths *[]string, isNormalize bool, ) *[]*fileinfo.Wrappers
Each path can give number wrappers from GetFileInfoWrappersFrom This method call GetFileInfoWrappersFrom for each path given and returns as an array of it.
func GetFileInfoWrappersFrom ¶
func GetFileInfoWrappersFromUsingSeparator ¶ added in v0.0.6
func GetFileNameWithExt ¶
reference example : https://play.golang.org/p/oT6eWNZAeEi
func GetFileNameWithoutExt ¶
invalid ext should return empty string. reference example : https://play.golang.org/p/oT6eWNZAeEi
func GetFileNames ¶
func GetFileNames(path string, isNormalize bool) *fileinfo.FileNamesCollection
returns file names on the path (non-lazy execution).
func GetFilenamePlusBothExtensions ¶ added in v0.0.4
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 if forced then if Windows then fix added anyway.
func GetLongPathsFixedOf ¶
func GetLongPathsFixedOf( isForce bool, pathSeparator string, givenAbsolutePaths ...string, ) *[]string
GetLongPathsFixedOf
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 if forced then if Windows then fix added anyway.
func GetLongPathsFixedOfPtr ¶
func GetLongPathsFixedOfPtr( isForce bool, pathSeparator string, givenAbsolutePaths *[]string, ) *[]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 if forced then if Windows then fix added anyway.
func GetOsFileInfos ¶ added in v0.0.7
func GetOsFileInfos( allPaths *[]string, ) ( infos *[]os.FileInfo, errsCollection *errwrappers.Collection, )
func GetOsFileInfosCollection ¶ added in v0.0.7
func GetOsFileInfosCollection( allPaths *[]string, ) ( infos *osfileinfos.Collection, errsCollection *errwrappers.Collection, )
func GetParentDir ¶ added in v0.1.3
func GetPathAsUri ¶
func GetPathAsUrisOf ¶
func GetPathAsUrisOfPtr ¶
func GetPathFromUri ¶
GetPathFromUri function takes a path (string) and a bool input and returns a string after removing Uri prefixes (file:///, file://). If bool is set to true any double separator is also removed from returned string
func GetRelativePath ¶
func GetRelativePaths ¶
func GetRelativePathsOfPtr ¶
func GetSlug ¶
GetSlug from given path, usages @slugForbiddenArray to replace with @separatorOfChoice
func GetSlugsOf ¶
func GetSlugsOfPtr ¶
func GetWithoutSlash ¶
func IndexOfDotFromLastFileName ¶ added in v0.0.4
returns -1 if last file name doesn't have any extension reference example : https://play.golang.org/p/oT6eWNZAeEi
func IsExistButDirectory ¶ added in v0.1.7
func IsPathExists ¶ added in v0.1.3
func IsSymbolicLink ¶
func RemoveFromPath ¶
Given removingList array items will be replaced with "" empty string. If pathTemplate is given as empty string or nil or whitespace then returns as is.
func SplitWithoutSlash ¶
reference example : https://play.golang.org/p/oT6eWNZAeEi
Types ¶
This section is empty.
Source Files ¶
- AllDirSplits.go
- AllDirSplitsWithSep.go
- ArgumentsJoin.go
- ArgumentsJoinSlice.go
- GetAbsoluteFromExecutableDirectoryPath.go
- GetAbsolutePath.go
- GetAbsolutePaths.go
- GetAbsolutePathsOfPtr.go
- GetAsyncProcessed.go
- GetBaseDir.go
- GetBaseDirNames.go
- GetCombinePathFromGoPath.go
- GetCombinePathsWithPtr.go
- GetCombinedOfNonEmptyPaths.go
- GetCombinedPath.go
- GetCombinedPathUsingConfig.go
- GetCombinedPathsWith.go
- GetCompiledPath.go
- GetDotExtension.go
- GetEachPathConvertedToFileInfoWrapper.go
- GetExecutableCombinePath.go
- GetExecutableDirectory.go
- GetExecutablePath.go
- GetExtensions.go
- GetExtensionsWithoutDot.go
- GetFileInfoWrapper.go
- GetFileInfoWrappersArrayOf.go
- GetFileInfoWrappersFromUsingSeparator.go
- GetFileNameWithExt.go
- GetFileNameWithoutExt.go
- GetFilenamePlusBothExtensions.go
- GetFilesPaths.go
- GetLongPathFixed.go
- GetLongPathsFixedOf.go
- GetLongPathsFixedOfPtr.go
- GetOsFileInfos.go
- GetOsFileInfosCollection.go
- GetParentDir.go
- GetPathAsUri.go
- GetPathAsUrisOf.go
- GetPathAsUrisOfPtr.go
- GetPathFromUri.go
- GetRelativePath.go
- GetRelativePathsOf.go
- GetRelativePathsOfPtr.go
- GetSlug.go
- GetSlugsOf.go
- GetSlugsOfPtr.go
- GetWithoutSlash.go
- IndexOfLastFileNameDot.go
- IsDir.go
- IsExistButDirectory.go
- IsGoModuleOn.go
- IsPathExists.go
- IsSymbolicLink.go
- RemoveDoubleUriSeparator.go
- RemoveFromPath.go
- Split.go
- SplitWithoutSlash.go
- getCombinedPathUsingConfigInternal.go
- getFileInfos.go
- isLetter.go
- isStringsContains.go
- vars.go
- whichPrefix.go