Documentation
¶
Index ¶
- func CloseSilent(closers ...io.Closer)
- func CreateDirIfMissing(path string) (bool, error)
- func DirPaths(paths []string, addTrailingSlash bool) []string
- func FileTree(paths []string, cwd string, dirsOrder DirsOrder) string
- func IgnoreHiddenFiles(path string, fi os.FileInfo) (bool, error)
- func IgnoreHiddenFolders(path string, fi os.FileInfo) (bool, error)
- func IgnoreNonPython(path string, fi os.FileInfo) (bool, error)
- func IgnoreNonYAML(path string, fi os.FileInfo) (bool, error)
- func IgnorePythonGeneratedFiles(path string, fi os.FileInfo) (bool, error)
- func IsDir(path string) bool
- func IsFile(path string) bool
- func IsFileOrDir(path string) bool
- func IsFilePathPython(path string) bool
- func IsFilePathYAML(path string) bool
- func ListDir(dir string, relative bool) ([]string, error)
- func ListDirRecursive(dir string, relative bool, ignoreFns ...IgnoreFn) ([]string, error)
- func MakeEmptyFile(path string) error
- func MakeEmptyFiles(paths ...string) error
- func MakeEmptyFilesInDir(dir string, paths ...string) error
- func ParentDir(dir string) string
- func ReadReqFile(r *http.Request, fileName string) ([]byte, error)
- func RelPath(userPath string, baseDir string) string
- func SearchForFile(filename string, dir string) (string, error)
- func SortFilePaths(paths []string, dirsOrder DirsOrder) []string
- func TmpDir() (string, error)
- func TrimDirPrefix(fullPath string, dirPath string) string
- func UserPath(userPath string) string
- type DirsOrder
- type IgnoreFn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloseSilent ¶
func CreateDirIfMissing ¶
func IsFileOrDir ¶
func IsFilePathPython ¶
func IsFilePathYAML ¶
func ListDirRecursive ¶
func MakeEmptyFile ¶
func MakeEmptyFiles ¶
func MakeEmptyFilesInDir ¶
func ReadReqFile ¶
ReadReqFile returns nil if no file
func SortFilePaths ¶
func TrimDirPrefix ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.