1
0
Commit Graph

17 Commits

Author SHA1 Message Date
338b153aa1
Inotify works when it is an array. Experimentally was found that 16 events is enough. 2022-02-08 02:13:15 +04:00
0c05ffeef6
Add a space between size and unit. 2022-02-08 01:52:27 +04:00
8e44aa1477
Oops, forgot to return FSWatcher. And remove that syscall.Read. 2022-02-08 00:39:25 +04:00
f7390b0763
Wrap an error message. Return 0 size on error. 2022-02-08 00:24:57 +04:00
04dedc5f5c
Inotify file system watching for linux. 2022-02-08 00:23:40 +04:00
a5f73e0d60
A new SetNotFoundHandler() method for server. 2022-02-07 22:50:46 +04:00
36b0dc7b4d
DirectorySize() func to get size of all files inside. 2022-02-07 22:17:40 +04:00
f3685c999e
An octal repr of permissions is supposed to be used here for working correctly. 2022-02-07 21:50:38 +04:00
f92267a288
Added optional writing to stdout. 2022-02-07 21:24:54 +04:00
f5ce98c021
Added a space between timestamp and format. 2022-02-07 19:38:20 +04:00
bde46d93b0
Wrote a simple logger. 2022-02-07 19:35:25 +04:00
9955e3cd28
Updated ConvertFileSize(). Added TiB suffix. 2022-02-07 04:48:33 +04:00
db361bb509
Prefix replaced by Suffix. Added NetworkType(). 2022-02-07 04:48:00 +04:00
5f9485fe3c
Added ServeStatic() method. GetURLParams now returns parameter itself, and renamed to GetURLParam. 2022-02-06 15:24:37 +04:00
8341fba20f
Utility for my infrastructure. Added MainSite function. 2022-02-06 15:23:32 +04:00
71c3eb56b6
Utility function to convert size ib bytes to its corresponding biggest unit. 2022-02-06 03:00:32 +04:00
d4852ee6dd
Initial commit. 2022-02-06 02:22:23 +04:00