Open stratofax opened 2 years ago
Not resolved. Today's error:
➤ xplat names --source-dir ~/Dropbox/cadent/Projects/Erlene/text/convert/ --ext docx
POST #6.docx
Total files found = 1
No output directory specified. Rename files? [y/N]: y
Selected files will be renamed and saved to:
/home/neil/Dropbox/cadent/Projects/Erlene/text/convert
Rename 1 file of type 'docx'? [y/N]: y
Converting file name:
/home/neil/Dropbox/cadent/Projects/Erlene/text/convert/POST #6.docx
to:
Traceback (most recent call last):
File "/home/neil/.cache/pypoetry/virtualenvs/xplat-uC98EnBH-py3.10/bin/xplat", line 5, in <module>
app()
File "/home/neil/.cache/pypoetry/virtualenvs/xplat-uC98EnBH-py3.10/lib/python3.10/site-packages/typer/main.py", line 214, in __call__
return get_command(self)(*args, **kwargs)
File "/home/neil/.cache/pypoetry/virtualenvs/xplat-uC98EnBH-py3.10/lib/python3.10/site-packages/click/core.py", line 1130, in __call__
return self.main(*args, **kwargs)
File "/home/neil/.cache/pypoetry/virtualenvs/xplat-uC98EnBH-py3.10/lib/python3.10/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
File "/home/neil/.cache/pypoetry/virtualenvs/xplat-uC98EnBH-py3.10/lib/python3.10/site-packages/click/core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/neil/.cache/pypoetry/virtualenvs/xplat-uC98EnBH-py3.10/lib/python3.10/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/neil/.cache/pypoetry/virtualenvs/xplat-uC98EnBH-py3.10/lib/python3.10/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "/home/neil/.cache/pypoetry/virtualenvs/xplat-uC98EnBH-py3.10/lib/python3.10/site-packages/typer/main.py", line 500, in wrapper
return callback(**use_params) # type: ignore
File "/home/neil/repos/xplat/src/xplat/cli.py", line 222, in names
rename_total = rename_list(file_list, output_dir, dryrun=dry_run)
File "/home/neil/repos/xplat/src/xplat/cli.py", line 79, in rename_list
new_file_name = renamer.inet_names(f_name, output_dir, dryrun)
File "/home/neil/repos/xplat/src/xplat/renamer.py", line 36, in inet_names
new_stem = new_stem.replace(" ", delim_chr)
TypeError: replace() argument 2 must be str, not bool
Sample output: