Skip to content

LocalFileRepository

The LocalFileRepository stores the file contents in the local file system.

It stores the File's contents in a file in the local file system.

Imagine you want to save the contents in /srv/file_data, you'll then initialize the repository with:

from repository_orm import load_file_repository

repo = load_file_repository("local:/srv/file_data")

Features

Follow the overview example to see how to use each method.

load
Load the content of the File from a file in the local filesystem.
save
Save the content of the File to a file in the local filesystem.
delete
Delete the file from the local filesystem.

Last update: 2022-08-12