Documentation
¶
Overview ¶
Package fileman contains file explorer-like functions for Directories, Files, and Symbolic Links.
Index ¶
- func Delete(path string) error
- func Duplicate(path, newPath string, sync bool) error
- func GetType(path string, includeSymLinks bool) (string, error)
- func Move(path, dirPath string) error
- func Rename(path, newName string) error
- func Search(itemName string, searchDir string, searchDepth int) (itemFound bool, path string)
- type Dir
- type File
- type SymLink
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Duplicate ¶
Duplicate will clone a specified item and place it in the newPath given. newPath should include the new name of what's being duplicated. Sync parameter does not affect symlinks.
Types ¶
type Dir ¶
Dir is a structure representing a single Directory. 4 slices will represent any files, directories, & symbolic links inside.
type File ¶
File is a structure representing a single file.
type SymLink ¶
SymLink is a structure representing a single symbolic link
func CopySymLink ¶
CopySymLink returns a SymLink struct from a specified path.
func CutSymLink ¶
CutSymLink will simultaneously Copy() & Delete() a specified symlink.
Click to show internal directories.
Click to hide internal directories.