Documentation
¶
Index ¶
- Constants
- func AbsentMany(paths []string) (err error)
- func Absolutize(paths []*string) error
- func Clear(path string) (err error)
- func CopyFile(source string, dest string, mode os.FileMode) error
- func CopyFileEnsureDir(src string, dst string, fileMode os.FileMode, dirMode os.FileMode) error
- func Ensure(path string, perm os.FileMode) error
- func EnsureMany(paths PathAndModes) error
- func IsDirEmpty(name string) (bool, error)
- func IsExists(path string) (bool, error)
- func MV(oldpath, newpath string) (e error)
- func MkdirAll(path string, perm os.FileMode) error
- func PathCopyDir(source string, dest string) (err error)
- func Remove(path string) (e error)
- func RemoveFileOKEvenIfNotExists(path string) (e error)
- func Rename(oldpath, newpath string, mode os.FileMode) error
- func ToFile(path string, mode os.FileMode, reader io.Reader) error
- func WriteFile(path string, dirMode, fileMode os.FileMode, src io.Reader) (int64, error)
- type MD5
- type PathAndModes
Constants ¶
View Source
const ( RemoveAttempts int = 20 MvAttempts int = 20 )
Variables ¶
This section is empty.
Functions ¶
func AbsentMany ¶
func Absolutize ¶
func CopyFileEnsureDir ¶
func EnsureMany ¶
func EnsureMany(paths PathAndModes) error
func IsDirEmpty ¶
func PathCopyDir ¶
Types ¶
type MD5 ¶
type PathAndModes ¶
type PathAndModes []pathAndMode
func NewPathAndModes ¶
func NewPathAndModes() PathAndModes
Click to show internal directories.
Click to hide internal directories.