Extract out fs validation functions
Many different validations are repeated within fs.js
, so I extracted them out to separate functions to try and DRY up the code and avoid duplicating them.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines
Affected core subsystem(s)
fs