Skip to content

Commit

Permalink
Correct the default in #25
Browse files Browse the repository at this point in the history
  • Loading branch information
KnugiHK committed Jan 31, 2023
1 parent 26b5884 commit 9600da5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Whatsapp_Chat_Exporter/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,11 @@ def main():
help="Show the HEX key used to decrypt the database")
parser.add_option(
"-c",
"--copy-media",
dest="copy_media",
default=True,
"--move-media",
dest="move_media",
default=False,
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()

if options.android and options.iphone:
Expand Down Expand Up @@ -204,7 +204,7 @@ def main():
if os.path.isdir(f"{options.output}/{options.media}"):
print("Media directory already exists in output directory. Skipping...")
else:
if options.copy_media:
if not options.move_media:
print("Copying media directory...")
shutil.copytree(options.media, f"{options.output}/WhatsApp")
else:
Expand Down

0 comments on commit 9600da5

Please sign in to comment.