refactoring FileSystemUtilities