Only binary data can be directly stored as files so will error on non-binary data.
Removes the corresponding file/folder (and metadata file).
Helper function to add file system related metadata.
Subject for the new quads.
Stats of the file/directory corresponding to the resource.
Generates metadata relevant for any resources stored by this accessor.
Path related metadata.
Stats objects of the corresponding directory.
If the path points to a container (directory) or not.
Generate all containment related triples for a container. These include the actual containment triples and specific triples for every child resource.
Path related metadata.
Will return data stream directly to the file corresponding to the resource. Will throw NotFoundHttpError if the input is a container.
Reads and generates all metadata relevant for the given directory, ingesting it into a RepresentationMetadata object.
Path related metadata.
Stats object of the corresponding directory.
Reads and generates all metadata relevant for the given file, ingesting it into a RepresentationMetadata object.
Path related metadata.
Stats object of the corresponding file.
Will return corresponding metadata by reading the metadata file (if it exists) and adding file system specific metadata elements.
Generates ResourceLink that corresponds to the metadata resource of the given identifier.
Reads the metadata from the corresponding metadata file. Returns an empty array if there is no metadata file.
Identifier of the resource (not the metadata!).
Gets the Stats object corresponding to the given file path.
File path to get info from.
Checks if the given path is a metadata path.
Verifies if there already is a file corresponding to the given resource. If yes, that file is removed if it does not match the path given in the input ResourceLink. This can happen if the content-type differs from the one that was stored.
ResourceLink corresponding to the new resource data.
Creates corresponding folder if necessary and writes metadata to metadata file if necessary.
Helper function without extra validation checking to create a data file.
The filepath of the file to be created.
The data to be put in the file.
Writes the given data as a file (and potential metadata as additional file). The metadata file will be written first and will be deleted if something goes wrong writing the actual data.
Writes the metadata of the resource to a meta file.
Path related metadata of the resource.
Metadata to write.
True if data was written to a file.
DataAccessor that uses the file system to store documents as files and containers as folders.