ThePornDatabase / namer

Renames adult video files so that the plex/jellyfin plugins and stash script will match without user input. Runs server or command mode.
https://theporndb.net
171 stars 26 forks source link

Renameing Keeps failing #214

Closed HighKingPhoenix closed 11 months ago

HighKingPhoenix commented 11 months ago

`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'.`