io

package
v0.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2022 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDirIfNotExist

func CreateDirIfNotExist(dir string) error

CreateDirIfNotExist : create directory if directory does not exist

func DownloadFromURLToLocation

func DownloadFromURLToLocation(location string, url string) error

downloadFromURLToLocation : download data from the given url to the given file location

func ForceSymLink(targetPath string, sourcePath string)

ForceSymLink : create a symbolic link from sourcePath to targetPath, delete if already exists

func IsSymlink(path string) bool

IsSymlink : check file exists and is symlink

func Move

func Move(source string, destination string) error

Move: move the given source file to the given destination, this function deals with copy between partitions

func RemoveDirIfExist

func RemoveDirIfExist(dir string) error

RemoveDirIfExist: remove the given directoryc if exists and is a directory

func RemoveFileIfExist

func RemoveFileIfExist(file string) error

RemoveFileIfExist: remove the given file if exists and is a regular file

func SetExecutable

func SetExecutable(file string) error

SetExecutable: set a file as executable, with 0755 permissions

func SymLink(targetPath string, sourcePath string)

SymLink : create a symbolic link from sourcePath to targetPath

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL