reload icon indicating copy to clipboard operation
reload copied to clipboard

[Feature Request] Recursive reload from a directory

Open zhouzhuojie opened this issue 5 years ago • 1 comments

Hi,

Wondering if reload can support recursive subdirectory from a directory.

https://github.com/Teamwork/reload/blob/ed43622194092571d65b220857b0ea5f814664ea/reload.go#L54-L55

zhouzhuojie avatar Feb 14 '20 23:02 zhouzhuojie

Yeah, don't mind accepting patches for this. Maybe as a new ListDirs(path string, cb func()) []Dir function which scans a directory. You can then do reload.Do(log.Print, cb, reload.ListDirs("./tpl", reloadTpl)...).

arp242 avatar Feb 15 '20 10:02 arp242