Preliminary implementation of FileResource