Common file and directory utility functions.
