Find a file with the given name.
Find a file with the given name. The repositories directory structure is searched, and the path of the first file found with that name is returned.
The name of the file to find
The path of the file, or None if it couldn't be found
Load a file using the given handler.
Load a file using the given handler. If the file is found then the file will be opened and handler will be called with the file's handle. The handler must call the close method on the handle to ensure that the file is closed properly.
The path of the file to load
The handler to handle the file
The file, as loaded by the loader, or None if the doesn't exist
Load a file using the given loader.
Load a file using the given loader. If the file is found then the file will be opened and loader will be called with its content. The file will be closed automatically when loader returns a value or throws an exception.
The path of the file to load
The loader to load the file
The file, as loaded by the loader, or None if the doesn't exist
Simple filesystem implementation of the FileRepository