Documentation ¶
Index ¶
- func CopyFile(src, dst string) error
- func DoesFileExists(name string) (bool, error)
- func ExtractTarGzFile(sourceFile, target string) error
- func GetAbsolutePath(relativePath string) string
- func GetPathToCurrentBinary() (string, error)
- func HasWritePermissionToFile(filePath string) (bool, error)
- func SafeMoveFile(source, target string, showLogs bool) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DoesFileExists ¶
func ExtractTarGzFile ¶
func GetAbsolutePath ¶
func GetPathToCurrentBinary ¶
func HasWritePermissionToFile ¶
syscall for unix-based instead of open
func SafeMoveFile ¶
os.Rename panics with "invalid cross-device link" for cases where the source is on a different volume or if the source volume is masked like in some linux systems and hence we attempt to perform copy+delete to replicate a move operation with added backup fallbacks
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.