Documentation ¶
Index ¶
- func Copy(fs v1.FS, src, dst string) error
- func DirSize(fs v1.FS, path string) (int64, error)
- func Exists(fs v1.FS, path string) (bool, error)
- func GlobFs(fs v1.FS, pattern string) ([]string, error)
- func IsDir(fs v1.FS, path string) (bool, error)
- func MkdirAll(fs v1.FS, name string, mode os.FileMode) (err error)
- func TempDir(fs v1.FS, dir, prefix string) (name string, err error)
- func TempFile(fs v1.FS, dir, pattern string) (f *os.File, err error)
- func WalkDirFs(fs v1.FS, root string, fn fs.WalkDirFunc) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GlobFs ¶ added in v2.16.0
GlobFs returns the names of all files matching pattern or nil if there is no matching file. Only consider the names of files in the directory included in the pattern, not in subdirectories. So the pattern "dir/*" will return only the files in the directory "dir", not in "dir/subdir".
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.