parser.add_argument('--version', action = 'version', version = f'codearchiver {codearchiver.version.__version__}')
parser.add_argument('-v', '--verbose', '--verbosity', dest = 'verbosity', action = 'count', default = 0, help = 'Increase output verbosity')
parser.add_argument('--dump-locals', dest = 'dumpLocals', action = 'store_true', default = False, help = 'Dump local variables on serious log messages (warnings or higher)')
# Undocumented option to write one line for each artefact filename produced by this process to FD 3.
parser.add_argument('--write-artefacts-fd-3', dest = 'writeArtefactsFd3', action = 'store_true', help = argparse.SUPPRESS)
'''Put a local file and (if provided) its metadata into storage. If an error occurs, a partial copy may remain in storage. If it completes, the local input file is removed.'''
@@ -24,6 +30,15 @@ class Storage(abc.ABC):
for _, subresult in result.submoduleResults:
self.put_result(subresult)
@property
@abc.abstractmethod
def newFiles(self) -> list[str]:
'''
List of all files that have been `.put()` on this instance.
This may include additional files for storing metadata.