|
d94030a4e8
|
In ConvertFileSize code was cosmetically changed a little.
|
2023-05-26 17:23:09 +04:00 |
|
|
54f87951c1
|
In DirectorySize() filepath.Walk was replaced by ioutil.ReadDir to shorten the code.
|
2023-05-26 17:22:21 +04:00 |
|
|
c9aa7e3715
|
Subtract a size of directory's inode itself.
|
2023-03-11 23:45:19 +04:00 |
|
|
0c05ffeef6
|
Add a space between size and unit.
|
2022-02-08 01:52:27 +04:00 |
|
|
f7390b0763
|
Wrap an error message. Return 0 size on error.
|
2022-02-08 00:24:57 +04:00 |
|
|
36b0dc7b4d
|
DirectorySize() func to get size of all files inside.
|
2022-02-07 22:17:40 +04:00 |
|
|
9955e3cd28
|
Updated ConvertFileSize(). Added TiB suffix.
|
2022-02-07 04:48:33 +04:00 |
|
|
71c3eb56b6
|
Utility function to convert size ib bytes to its corresponding biggest unit.
|
2022-02-06 03:00:32 +04:00 |
|