Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func Exists ¶
Returns if given path exists and any os error occurs (except os.ErrNotExist). Before using the value check error first.
func ExistsDir ¶
Returns if a file exists in given path and any os error occurs (except os.ErrNotExist). Returns ErrNotFile if the path is an existing directory. Before using the value check error first. For directory checks better use ExistsDir.
func ExistsFile ¶
Returns if a file exists in given path and any os error occurs (except os.ErrNotExist). Returns ErrNotFile if the path is an existing directory. Before using the value check error first. For directory checks better use ExistsDir.
func HumanizedSizeB10 ¶
Base 10 humanized byte strings. Rounding done at number side only. Example: 999.9 kB will be shown as 999.9 kB but 999.91 kB will be shown as 1000.kB not 1.0 MB
func HumanizedSizeB2 ¶
Base 2 humanized byte strings. Rounding done at number side only. Example: 1023.9 kB will be shown as 1023.9 kB but 1023.91 kB will be shown as 1024.kB not 1.0 MB
Types ¶
This section is empty.