fileUtilities function

Useful utility functions for file/directory exploration and manipulation.