`PS C:\Users\Phoenix> python -m namer rename -m -d Z:\Sort
Traceback (most recent call last):
File "C:\Program Files\Python311\Lib\shutil.py", line 825, in move
os.rename(src, real_dst)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'Z:\Sort\18 Eighteen\Up To No Good - 2016-01-20' -> 'Z:\Sort\18 Eighteen\Up To No Good - 2016-01-20\Up To No Good - 2016-01-20'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "C:\Users\Phoenix\AppData\Roaming\Python\Python311\site-packages\namer__main.py", line 87, in
main()
File "C:\Users\Phoenix\AppData\Roaming\Python\Python311\site-packages\namer\main__.py", line 76, in main
namer.namer.main(arg_list[1:])
File "C:\Users\Phoenix\AppData\Roaming\Python\Python311\site-packages\namer\namer.py", line 330, in main
dir_with_sub_dirs_to_process(args.dir.absolute(), config, args.infos)
File "C:\Users\Phoenix\AppData\Roaming\Python\Python311\site-packages\namer\namer.py", line 105, in dir_with_sub_dirs_to_process
process_file(command)
File "C:\Users\Phoenix\AppData\Roaming\Python\Python311\site-packages\namer\namer.py", line 228, in process_file
target = move_to_final_location(command, new_metadata)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Phoenix\AppData\Roaming\Python\Python311\site-packages\namer\command.py", line 282, in move_to_final_location
shutil.move(file, dest_file)
File "C:\Program Files\Python311\Lib\shutil.py", line 833, in move
raise Error("Cannot move a directory '%s' into itself"
shutil.Error: Cannot move a directory 'Z:\Sort\18 Eighteen\Up To No Good - 2016-01-20' into itself 'Z:\Sort\18 Eighteen\Up To No Good - 2016-01-20\Up To No Good - 2016-01-20'.`
`PS C:\Users\Phoenix> python -m namer rename -m -d Z:\Sort Traceback (most recent call last): File "C:\Program Files\Python311\Lib\shutil.py", line 825, in move os.rename(src, real_dst) PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'Z:\Sort\18 Eighteen\Up To No Good - 2016-01-20' -> 'Z:\Sort\18 Eighteen\Up To No Good - 2016-01-20\Up To No Good - 2016-01-20'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "C:\Users\Phoenix\AppData\Roaming\Python\Python311\site-packages\namer__main.py", line 87, in
main()
File "C:\Users\Phoenix\AppData\Roaming\Python\Python311\site-packages\namer\ main__.py", line 76, in main
namer.namer.main(arg_list[1:])
File "C:\Users\Phoenix\AppData\Roaming\Python\Python311\site-packages\namer\namer.py", line 330, in main
dir_with_sub_dirs_to_process(args.dir.absolute(), config, args.infos)
File "C:\Users\Phoenix\AppData\Roaming\Python\Python311\site-packages\namer\namer.py", line 105, in dir_with_sub_dirs_to_process
process_file(command)
File "C:\Users\Phoenix\AppData\Roaming\Python\Python311\site-packages\namer\namer.py", line 228, in process_file
target = move_to_final_location(command, new_metadata)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Phoenix\AppData\Roaming\Python\Python311\site-packages\namer\command.py", line 282, in move_to_final_location
shutil.move(file, dest_file)
File "C:\Program Files\Python311\Lib\shutil.py", line 833, in move
raise Error("Cannot move a directory '%s' into itself"
shutil.Error: Cannot move a directory 'Z:\Sort\18 Eighteen\Up To No Good - 2016-01-20' into itself 'Z:\Sort\18 Eighteen\Up To No Good - 2016-01-20\Up To No Good - 2016-01-20'.`