#115 use a dedicated class for file and directory resources while scanning directories