mirror of
https://github.com/KnugiHK/WhatsApp-Chat-Exporter.git
synced 2026-04-24 23:11:35 +00:00
Correct the default in #25
This commit is contained in:
@@ -95,11 +95,11 @@ def main():
|
|||||||
help="Show the HEX key used to decrypt the database")
|
help="Show the HEX key used to decrypt the database")
|
||||||
parser.add_option(
|
parser.add_option(
|
||||||
"-c",
|
"-c",
|
||||||
"--copy-media",
|
"--move-media",
|
||||||
dest="copy_media",
|
dest="move_media",
|
||||||
default=True,
|
default=False,
|
||||||
action='store_true',
|
action='store_true',
|
||||||
help="Copy media directory to output directory, otherwise move the media directory to output directory")
|
help="Move the media directory to output directory if the flag is set, otherwise copy it")
|
||||||
(options, args) = parser.parse_args()
|
(options, args) = parser.parse_args()
|
||||||
|
|
||||||
if options.android and options.iphone:
|
if options.android and options.iphone:
|
||||||
@@ -204,7 +204,7 @@ def main():
|
|||||||
if os.path.isdir(f"{options.output}/{options.media}"):
|
if os.path.isdir(f"{options.output}/{options.media}"):
|
||||||
print("Media directory already exists in output directory. Skipping...")
|
print("Media directory already exists in output directory. Skipping...")
|
||||||
else:
|
else:
|
||||||
if options.copy_media:
|
if not options.move_media:
|
||||||
print("Copying media directory...")
|
print("Copying media directory...")
|
||||||
shutil.copytree(options.media, f"{options.output}/WhatsApp")
|
shutil.copytree(options.media, f"{options.output}/WhatsApp")
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user