l.s.l.storage : module documentation

Part of lp.services.librarianserver

No module docstring
Function fsync_path Undocumented
Function makedirs_fsync makedirs_fsync(path [, mode=0o777])
Class DigestMismatchError The given digest doesn't match the SHA-1 digest of the file.
Class DuplicateFileIDError Given File ID already exists.
Class WrongDatabaseError The client's database name doesn't match our database.
Class LibrarianStorage Blob storage.
Class TxSwiftStream Undocumented
Class LibraryFileUpload A file upload from a client.
Function _sameFile Undocumented
Function _relFileLocation Return the relative location for the given file_id.
def fsync_path(path, dir=False):
Undocumented
def makedirs_fsync(name, mode=511):
makedirs_fsync(path [, mode=0o777])

os.makedirs, but fsyncing on the way up to ensure durability.

def _sameFile(path1, path2):
Undocumented
def _relFileLocation(file_id):
Return the relative location for the given file_id.

The relative location is obtained by converting file_id into a 8-digit hex and then splitting it across four path segments.

API Documentation for Launchpad, generated by pydoctor at 2018-10-17 00:00:11.