# Functions
FetchDefaultFolderFileMode if in windows, will return os.FileMode(0o766), windows not support umask
use umask to get folder file mode
if not windows, will use umask, will return os.FileMode(0o777) - umask not support umask will use os.FileMode(0o777).
GetCurrentExecPath get exec path.
GetCurrentFilePath run path.
Mkdir will use FetchDefaultFolderFileMode().
Path2WebPath local path to web path will move prefix filepath.Separator.
PathExists path exists.
PathExistsFast path exists fast.
PathFileList list of Path file.
PathFolderList list of Path Folder.
PathIsDir exists path is dir or false.
PathIsFile exists path is file or false.
PathJoin is filepath.Join().
PathParent as filepath.Dir.
ReadFileAsByte read file as byte array.
ReadFileAsJson read file as json.
RmDir remove dir by path.
RmDirForce remove dir force.
WalkAllByGlob can walk all path then return as list, by glob with filepath.Glob.
WalkAllByMatchPath can walk all path then return as list, by under path pattern.
WalkAllFileBySuffix can walk all file then return all files as list, by file suffix.
WriteFileAsJson write json file path most use Abs Path v data fileMod os.FileMode(0666) or os.FileMode(0644) coverage true will coverage old beauty will format json when write.
WriteFileAsJsonBeauty write json file as 0666 and beauty.
WriteFileByByte write bytes to file path most use Abs Path data []byte fileMod os.FileMode(0o666) or os.FileMode(0o644) coverage true will coverage old.