Documentation
¶
Index ¶
- Variables
- func AllFiles(dir string) (files []string, err error)
- func Append(path string, content []byte) error
- func Basename(path string) string
- func Chmod(path string, mode fs.FileMode) error
- func Copy(src, dst string) error
- func CopyDirectory(dir, dest string) error
- func Delete(paths ...string) error
- func DeleteDirectory(path string) error
- func Directories(dir string) (dirs []string, err error)
- func Dirname(path string) string
- func Exists(path string) (bool, error)
- func Extension(path string) string
- func Files(dir string) (files []string, err error)
- func Get(path string) (b []byte, err error)
- func GetString(path string) (content string, err error)
- func IsDirectory(path string) (bool, error)
- func IsFile(path string) (bool, error)
- func IsReadable(path string) (bool, error)
- func IsWritable(path string) (bool, error)
- func LastModified(path string) (t time.Time, err error)
- func Link(src, dst string) error
- func MakeDirectories(path string, mode os.FileMode) error
- func MakeDirectory(path string, mode os.FileMode) error
- func Move(from string, to string) error
- func MoveDirectory(src, dst string) error
- func MustGet(path string) []byte
- func MustGetString(path string) string
- func Name(path string) string
- func Prepend(path string, content []byte) error
- func Put(path string, content []byte) error
- func PutString(path string, content string) error
- func Size(path string) (int64, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var Separator = fmt.Sprintf("%c", os.PathSeparator)
Functions ¶
func CopyDirectory ¶
func DeleteDirectory ¶
func Directories ¶
func IsDirectory ¶
func IsReadable ¶
func IsWritable ¶
func MoveDirectory ¶
func MustGetString ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.