Documentation ¶
Index ¶
- func CheckDir(path string) error
- func CheckFile(path string) error
- func CloseSilent(closers ...io.Closer)
- func CreateDirIfMissing(path string) (bool, error)
- func CreateFile(path string) (*os.File, error)
- func DirPaths(paths []string, addTrailingSlash bool) []string
- func ErrorCreateDir(path string) error
- func ErrorCreateFile(path string) error
- func ErrorDirDoesNotExist(path string) error
- func ErrorFileAlreadyExists(path string) error
- func ErrorFileDoesNotExist(path string) error
- func ErrorNotADir(path string) error
- func ErrorNotAFile(path string) error
- func ErrorReadDir(path string) error
- func ErrorReadFile(path string) error
- func ErrorReadFormFile(fileName string) error
- func ErrorUnexpected() error
- 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 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 MkdirAll(path string, perm os.FileMode) error
- func Open(path string) (*os.File, error)
- func OpenFile(name string, flag int, perm os.FileMode) (*os.File, error)
- func ParentDir(dir string) string
- func ReadFileBytes(path string) ([]byte, error)
- 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
- func WriteFile(filename string, data []byte, perm os.FileMode) error
- type DirsOrder
- type Error
- type ErrorKind
- type IgnoreFn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloseSilent ¶
func CreateDirIfMissing ¶
func ErrorCreateDir ¶ added in v0.4.0
func ErrorCreateFile ¶ added in v0.4.0
func ErrorDirDoesNotExist ¶ added in v0.4.0
func ErrorFileAlreadyExists ¶ added in v0.4.0
func ErrorFileDoesNotExist ¶ added in v0.4.0
func ErrorNotADir ¶ added in v0.4.0
func ErrorNotAFile ¶ added in v0.4.0
func ErrorReadDir ¶ added in v0.4.0
func ErrorReadFile ¶ added in v0.4.0
func ErrorReadFormFile ¶ added in v0.4.0
func ErrorUnexpected ¶ added in v0.4.0
func ErrorUnexpected() error
func IsFileOrDir ¶
func IsFilePathPython ¶
func IsFilePathYAML ¶
func ListDirRecursive ¶
func MakeEmptyFile ¶
func MakeEmptyFiles ¶
func MakeEmptyFilesInDir ¶
func ReadFileBytes ¶ added in v0.4.0
func ReadReqFile ¶
ReadReqFile returns nil if no file
func SortFilePaths ¶
func TrimDirPrefix ¶
Types ¶
type DirsOrder ¶
type DirsOrder string
var DirsOnBottom DirsOrder = "bottom"
var DirsOnTop DirsOrder = "top"
var DirsSorted DirsOrder = "sorted"
type Error ¶ added in v0.4.0
type Error struct { Kind ErrorKind // contains filtered or unexported fields }
type ErrorKind ¶ added in v0.4.0
type ErrorKind int
func (ErrorKind) MarshalBinary ¶ added in v0.4.0
MarshalBinary satisfies BinaryMarshaler
func (ErrorKind) MarshalText ¶ added in v0.4.0
MarshalText satisfies TextMarshaler
func (*ErrorKind) UnmarshalBinary ¶ added in v0.4.0
UnmarshalBinary satisfies BinaryUnmarshaler Needed for msgpack
func (*ErrorKind) UnmarshalText ¶ added in v0.4.0
UnmarshalText satisfies TextUnmarshaler
Click to show internal directories.
Click to hide internal directories.