saveset_files_mod module

A simple class for operating on the file list portion of a saveset.

class saveset_files_mod.Saveset_files(repo, saveset_summary=None)[source]

Bases: object

A simple class for operating on the file list portion of a saveset.

get_filename(filename)[source]

Read one file back from its containing directory, returning it as a Backshift_file.

put_filename(filename, backshift_file)[source]

Write one Backshift_file to a database containing file metadata.

Includes hashes and lengths of chunks where appropriate.

saveset_files_mod.convert_filename(filename)[source]

Convert a filename to a sort of normalized form: Make it “binary”, and strip off the leading / (os.path.sep).

saveset_files_mod.prepend_dir_prefix(path, start_from=0)[source]

Prepend dir- prefixes.