Utility functions for working with the file system