Acquire.Storage._filemeta module¶
-
class
FileMeta(filename=None, uid=None, filesize=None, checksum=None, uploaded_by=None, uploaded_when=None, compression=None, aclrules=None)[source]¶ Bases:
objectThis is a lightweight class that holds the metadata about a particular version of a file
-
acl()[source]¶ If known, return the ACL for this version of the file for the user that requested this FileMeta (e.g. the user who listed the drive containing this file)
-
aclrules()[source]¶ If known, return the ACL rules that were used to generate the ACL for this file. Note that you can only see the ACL rules if you are an owner of the file
-
assert_correct_data(filedata=None, filename=None)[source]¶ Assert that the passed data is correct (right size and checksum)
-
compression_type()[source]¶ Return the compression type for this file, if it is stored and transmitted in a compressed state
-
static
from_data(data)[source]¶ Return a new FileMeta constructed from the passed json-deserialised dictionary
-
has_metadata()[source]¶ Return whether or not this file includes all of the metadata. If not, then only the filename is available
-
is_compressed()[source]¶ If known, return whether or not this file is stored and transmitted in a compressed state
-