fcsArchiver.archiveObject

class fcsArchiver.archiveObject(action='archive')[source]

Our base archive object which represents a single file entity.

fileSize()[source]

Returns the file size for the loaded archiveObject

loadFCSObject()[source]

Loads the archive objects respective FCS object and saves to self.fcsObject

loadForFileAtPath(filePath='')[source]

Loads archiveObject based upon a file path. We expect the filepath to represent a FCS XML file, and will load in the appropriate entityID as well as perform a checksum of the file.

loadFromFCSObject(object)[source]

Loads archiveObject from an FCS Object

loadFromSQLResult(results)[source]

Load internal values from a sqlite3 result row

loadFromXMLFile(xmlFilePath='')[source]

Loads archiveObject based upon a file path. We expect the filepath to represent a FCS XML file, and will load in the appropriate entityID as well as perform a checksum of the file.

md5sum(filePath='')[source]

Calculate MD5 checksome of passed file’‘

setStatus(status)[source]

Set the status for the object

setTapeSet(tapeSet)[source]

Set the tapeSet for the object

wasError(error='', status='failed')[source]

This function is called whenever the object fails to archive, set our error status, archive status, and clear out our archiveSetName

Previous topic

fcsArchiver.fcsArchiver

Next topic

fcsArchiver.archiveSet

This Page