mirror of
https://github.com/robmcmullen/atrcopy.git
synced 2025-02-08 00:30:27 +00:00
Fixed file extraction to only happen with -x option
This commit is contained in:
parent
63239991e3
commit
acdbe784c5
@ -664,12 +664,12 @@ def process(dirent, options):
|
||||
if options.dry_run:
|
||||
action = "DRY_RUN: %s" % action
|
||||
skip = True
|
||||
if not skip:
|
||||
bytes = atr.get_file(dirent)
|
||||
with open(outfilename, "wb") as fh:
|
||||
fh.write(bytes)
|
||||
if options.extract:
|
||||
print "%s: %s %s" % (dirent, action, outfilename)
|
||||
if not skip:
|
||||
bytes = atr.get_file(dirent)
|
||||
with open(outfilename, "wb") as fh:
|
||||
fh.write(bytes)
|
||||
else:
|
||||
print dirent
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user