Apply new pathclass.Extension with_dot.

master
Ethan Dalool 2020-02-02 19:38:24 -08:00
parent dfb3e9e6ed
commit edbd1e9996
1 changed files with 1 additions and 1 deletions

View File

@ -1296,7 +1296,7 @@ def addfile_argparse(args):
rand_suffix = random_string(3, string.digits) rand_suffix = random_string(3, string.digits)
base = file.replace_extension('').basename base = file.replace_extension('').basename
id = f'{base}_{rand_suffix}' id = f'{base}_{rand_suffix}'
basename = f'{base}_{rand_suffix}{file.dot_extension}' basename = f'{base}_{rand_suffix}{file.extension.with_dot}'
content = open(file.absolute_path, 'rb').read() content = open(file.absolute_path, 'rb').read()
book.add_file(id, basename, content) book.add_file(id, basename, content)