18.1.1.4. AcquisitionDeleteStep¶
-
class
acquisition.
AcquisitionDeleteStep
[source]¶ Bases:
acquisition.AcquisitionStep
Class to describe a delete acquisition step.
Methods Summary
process
(xaf)Process one file.
Methods Documentation
-
process
(xaf)[source]¶ Process one file.
Process one XattrFile. You have to override this method (unless your class inherits from BatchStep, see batch_process() in that case).
The file is moved into a temporary directory before the call with an unique filename. Extended attributes are copied to it. So you can do what you want with it.
If the method returns True:
we considerer that the processing is ok
the file is delete if necessary
If the method doesn’t return True:
- we considerer that the processing is not ok (a warning message is
logged).
the file is given to the choosen failure policy.
- Parameters
xaf – XattrFile object.
- Returns
processing status (True: ok, False: not ok)
- Return type
boolean
-