Documentation
¶
Index ¶
- Constants
- func Abs(path string) (string, error)
- func Base(path string) string
- func Chdir(dir string) error
- func Chmod(name string, mode os.FileMode) error
- func ChmodR(name string, mode os.FileMode) error
- func Chown(name string, uid, gid int) error
- func ChownR(path string, uid, gid int) error
- func Chtimes(name string, atime time.Time, mtime time.Time) error
- func Clean(path string) string
- func Cp(src, dest string) error
- func CpDirOnly(src, dest string) error
- func CpR(source, dest string) error
- func CpSymlinkContent(src, dest string) error
- func CpWithOptions(source, dest string, args Options) (err error)
- func Dir(path string) string
- func EvalSymlinks(path string) (string, error)
- func Ext(path string) string
- func FromSlash(path string) string
- func Getwd() (dir string, err error)
- func Glob(pattern string) (matches []string, err error)
- func HasPrefix(p, prefix string) bool
- func IsAbs(path string) bool
- func IsDir(path string) (bool, error)
- func IsExists(path string) (bool, error)
- func IsFile(path string) (bool, error)
- func IsNotExist(path string) (bool, error)
- func IsRegular(path string) (bool, error)
- func Join(elem ...string) string
- func Lchown(name string, uid, gid int) error
- func Link(oldname, newname string) error
- func LookPath(file string) (string, error)
- func Lstat(name string) (os.FileInfo, error)
- func Match(pattern, name string) (matched bool, err error)
- func Mkdir(name string, perm os.FileMode) error
- func MkdirAll(path string, perm os.FileMode) error
- func MkdirP(path string, perm os.FileMode) error
- func Mv(oldname, newname string) error
- func NopCloser(r io.Reader) io.ReadCloser
- func ReadAll(r io.Reader) ([]byte, error)
- func ReadDir(dirname string) ([]os.FileInfo, error)
- func ReadFile(filename string) ([]byte, error)
- func Readlink(name string) (string, error)
- func Rel(basepath, targpath string) (string, error)
- func Remove(path string) error
- func RemoveAll(path string) error
- func Rename(oldname, newname string) error
- func Rm(name string) error
- func RmRF(path string) error
- func SameFile(fi1, fi2 os.FileInfo) bool
- func Split(path string) (dir, file string)
- func SplitList(path string) []string
- func Stat(name string) (os.FileInfo, error)
- func Symlink(oldname, newname string) error
- func TempDir(dir, prefix string) (name string, err error)
- func TempFile(dir, prefix string) (f *os.File, err error)
- func ToSlash(path string) string
- func Truncate(name string, size int64) error
- func Type(path string) (string, error)
- func TypeFileInfo(fi os.FileInfo) string
- func VolumeName(path string) (v string)
- func Walk(root string, walkFn filepath.WalkFunc) error
- func Which(file string) (string, error)
- func WriteFile(filename string, data []byte, perm os.FileMode) error
- type Options
Constants ¶
View Source
const ( Separator = os.PathSeparator ListSeparator = os.PathListSeparator )
Variables ¶
This section is empty.
Functions ¶
func CpSymlinkContent ¶
func CpWithOptions ¶
func EvalSymlinks ¶
func IsNotExist ¶
func TypeFileInfo ¶
func VolumeName ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.