File I/O improvements
- Tracer now iterates over blocks in disk order. - Packer copies files per directory, in a separate thread. - Packer only copies files if they don't exist yet. - Packer also copies file permissions.
This commit is contained in:
@@ -33,7 +33,13 @@ def cli_pack(args):
|
||||
bpath, ppath, tpath = paths_from_cli(args)
|
||||
packer = pack.Packer(bpath, ppath, tpath, args.noop)
|
||||
packer.strategise()
|
||||
packer.execute()
|
||||
|
||||
try:
|
||||
packer.execute()
|
||||
except pack.FileCopyError as ex:
|
||||
log.error("%d files couldn't be copied, starting with %s",
|
||||
len(ex.files_not_copied), ex.files_not_copied[0])
|
||||
raise SystemExit(1)
|
||||
|
||||
|
||||
def paths_from_cli(args) -> (pathlib.Path, pathlib.Path, pathlib.Path):
|
||||
|
||||
Reference in New Issue
Block a user