Documentation
¶
Index ¶
- func ClearDirectory(path string, flat bool) error
- func Copy(src, dest string) (int64, error)
- func Delete(fname string) error
- func Exists(fname string) bool
- func GenerateRandomFilename(url, root, path string) (string, string, error)
- func Mkdir(path string) error
- func Move(src, dst string) error
- func NormalizePath(path string) (string, error)
- func Read(fname string) ([]byte, error)
- func Rmdir(path string) error
- func TouchWithPath(fname string, template string) error
- func URLFileExtension(addr string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearDirectory ¶
func GenerateRandomFilename ¶
func NormalizePath ¶ added in v0.4.3
func TouchWithPath ¶
TouchWithPath ensures that file "fname" exists. If file does not exist, it is created as a copy of the specified template, including all the necessary parent directories.
func URLFileExtension ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.