Utility methods for testing file and directory contents and other things.