Documentation ¶
Index ¶
- func AppendStringToFile(filePath, input string)
- func ChangeFilePermission(filePath string, permission int)
- func ChangeOwnership(path, username string, sudo bool)
- func Copy(sourcePath, destPath string, sudo bool) error
- func CreateDir(dirPath string, sudo bool) error
- func CreateEmptyDir(filePath string)
- func CreateEmptyFile(filePath string)
- func Delete(path string, sudo bool)
- func DirIsEmpty(path string) bool
- func Exists(filePath string) bool
- func Explorer(objectType, path string, search, exclude []string) []string
- func FileContainsString(filePath, str string) bool
- func FileContentEmpty(filePath string) bool
- func FileToBytes(filePath string) []byte
- func FileToString(filePath string) string
- func GetAbsolutePathToFile(filePath string) string
- func GetDirPathFromFilePath(filePath string) string
- func GetFileMode() os.FileMode
- func GetFileNameFromDirPath(dirPath string) string
- func GetLastFolderFromPath(filePath string) string
- func GetSize(path, unit string) float64
- func GetUserHomeDir() string
- func GetWorkingDir(folderOnly bool) string
- func GetWorkspaceFolderVar() string
- func GiveProgramPermissions(path, user string)
- func Move(sourcePath, destPath string, sudo bool)
- func RemoveFile(filePath string)
- func RenameFile(filePathOld string, filePathNew string)
- func SaveByteArrayToFile(byteArray []byte, filePath string) error
- func StreamToBytes(stream io.Reader) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendStringToFile ¶
func AppendStringToFile(filePath, input string)
func ChangeFilePermission ¶
func ChangeOwnership ¶
func CreateEmptyDir ¶
func CreateEmptyDir(filePath string)
func CreateEmptyFile ¶
func CreateEmptyFile(filePath string)
func DirIsEmpty ¶
func FileContainsString ¶
func FileContentEmpty ¶
func FileToBytes ¶
func FileToString ¶
func GetAbsolutePathToFile ¶
func GetDirPathFromFilePath ¶
func GetFileMode ¶
func GetFileNameFromDirPath ¶
func GetLastFolderFromPath ¶
func GetUserHomeDir ¶
func GetUserHomeDir() string
func GetWorkingDir ¶
func GetWorkspaceFolderVar ¶
func GetWorkspaceFolderVar() string
func GiveProgramPermissions ¶
func GiveProgramPermissions(path, user string)
func RemoveFile ¶
func RemoveFile(filePath string)
func RenameFile ¶
func SaveByteArrayToFile ¶
func StreamToBytes ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.