Figura would trigger Model autoreload, even if a file withing a hidden directory was changed. It used to happen, as Figura only checked, if a file itself is hidden, and did not check, if the file is contained within a hidden directory. This used to lead to multiple unneeded autoreloads and high resources usage.
Solution
Added IOUtils#isHiddenAvatarResource(Path) static method, that checks both, if the file itself is hidden, or if it is contained within a hidden folder.
Made LocalAvatarLoader#tick() use new IOUtils#isHiddenAvatarResource(Path) instead of Files#isHidden(Path).
Bug
Figura would trigger Model autoreload, even if a file withing a hidden directory was changed. It used to happen, as Figura only checked, if a file itself is hidden, and did not check, if the file is contained within a hidden directory. This used to lead to multiple unneeded autoreloads and high resources usage.
Solution
IOUtils#isHiddenAvatarResource(Path)
static method, that checks both, if the file itself is hidden, or if it is contained within a hidden folder.LocalAvatarLoader#tick()
use newIOUtils#isHiddenAvatarResource(Path)
instead ofFiles#isHidden(Path)
.