Documentation ¶
Index ¶
- func CerateTempFile(fileName string)
- func ChangeOwnership(fileName string, uid, gid int)
- func ChangePermission(fileName string, mode int)
- func ChangeTime(fileName string, atime, mtime time.Time)
- func CheckPermission(fileName string)
- func ChecksumFile(fileName string)
- func ChecksumFileContent(fileName string)
- func CompressFile(gzFileName string, fileName string)
- func Copy(oldname, newname string) (err error)
- func CreateArchiveFile(zipName string, fileNames []string)
- func CreateEmptly(fileName string)
- func Delete(fileName string)
- func ExtractArchiveFile(zipName string, targetDirectory string)
- func FileFromHTTP(fileName, url string)
- func GetInfo(fileName string)
- func HardLink(oldname, newname string)
- func Move(oldLoc string, newLoc string)
- func Open(fileName string)
- func Read(fileName string, len int)
- func Seek(fileName string, offset int64, whence int) int64
- func SymLink(oldname, newname string)
- func Truncate(fileName string, size int64)
- func UncompressFile(gzFileName string, newFileName string)
- func Write(fileName string, content []byte)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CerateTempFile ¶
func CerateTempFile(fileName string)
Create a temporary file which will remove at file end
func ChecksumFileContent ¶
func ChecksumFileContent(fileName string)
Create checksum from a file content
func CompressFile ¶
Compress "fileName" to zip "gzFileName"
func CreateArchiveFile ¶
Archive given files
func ExtractArchiveFile ¶
Extract a zip archive file
func FileFromHTTP ¶
func FileFromHTTP(fileName, url string)
Read file from HTTP and write content to a file.
func UncompressFile ¶
Uncompress file "gzFileName" to "newFileName"
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.