Adding method for contentAtDirectoryPath