Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FileExists ¶
Warning: this function will work correctly if there is priviledge to access 'path'
func FileExistsEx ¶
https://stackoverflow.com/questions/12518876/how-to-check-if-a-file-exists-in-go
func FileMove ¶
https://stackoverflow.com/questions/50740902/move-a-file-to-a-different-drive-with-go
- os.Rename(source, destination) will not work for different Driver
- use io.Copy() rather than ioutil.ReadFile(), since Using ioutil.ReadFile is generally fine for smaller files, but it does copy the entire file into a slice. This means means that "moving" a large file will take lots of memory if you use those functions. io.Copy can even make use of kernel-specific syscalls that avoid loading the file into userspace at all. You should use io.Copy. ioutil. ReadFile` reads the entire file into memory at one time. It's only good for small filles.
func GetProcessName ¶
func GetProcessName() string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.