Documentation ¶
Index ¶
- func CalcBytes(bytes int64) (mb, gb, tb, pb, eb int64)
- func Compress(source string) error
- func CopyDir(source string, dest string) (err error)
- func CopyFile(source string, dest string) (err error)
- func DiskUsage(path string, info os.FileInfo) int64
- func FilesByExt(directory, ext string)
- func IsDir(path string) bool
- func IsDirEmpty(directory string) bool
- func RemoveAllDir(path string)
- func RemoveDir(path string)
- func ReturnSizeStr(size int64) (string, int64)
- func Scan(path string, f os.FileInfo, err error) error
- func Scanner(directory string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilesByExt ¶
func FilesByExt(directory, ext string)
Find files by extension
Example: dir.FilesByExtension("C:\\Windows", "exe")
func IsDirEmpty ¶
func RemoveAllDir ¶
func RemoveAllDir(path string)
func ReturnSizeStr ¶
How use:
var a, b = ReturnSizeStr(1048106) fmt.Printf("Size: %d %s", b, a)
TODO: Solucionar erro para GigaByte, TeraByte...
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.