Documentation
¶
Overview ¶
package filesystem contains functions for working with the filesystem
package filesystem contains functions for working with the filesystem
package filesystem contains functions for working with the filesystem
package filesystem contains functions for working with the filesystem
package filesystem contains functions for working with the filesystem
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DisableCache bool
)
variables to be used in the package
Functions ¶
func Dir ¶
Dir gets the home directory of the user Returns:
string -- the home directory of the user error -- an error if the home directory could not be found
func Expand ¶
Expand expands the path to include the home directory Arguments:
path -- the path to expand
Returns:
string -- the expanded path error -- an error if the path could not be expanded
func FilePathWalkDir ¶
FilePathWalkDir walks a directory and returns a list of files Arguments:
root -- the directory to walk
Returns:
[]string -- a list of files error -- an error if the directory could not be walked
func IsEmpty ¶
is emptx checks if a directory is empty Arguments:
path -- the path to the directory to check
Returns:
bool -- true if the directory is empty, false otherwise error -- an error if the directory could not be read
Types ¶
Click to show internal directories.
Click to hide internal directories.