Page 1 of 1

Copy is done without renaming while log says otherwise

Posted: 09 Apr 2021, 09:11
by Brax
Hello,

I have had this strange behavior 2 or 3 times during last weeks:

Filebot is called to rename a new file, the log shows a good renaming, but the copied file is not renamed

Code: Select all

[MOVE] from [E:\DDL\Fichiers divers\Judas.Kiss.1998.MULTi.VFF.1080p.WEBRip.AC3.x264-TireXo.mkv] to [I:\USBShare1\1080P\Judas Kiss (1998) [tt0138541]\Judas Kiss (1998) [tt0138541] 1080p.mkv]
The problem is my copied file is in fact ;

Code: Select all

I:\USBShare1\1080P\Judas.Kiss.1998.MULTi.VFF.1080p.WEBRip.AC3.x264-TireXo (1998) [tt0138541]\Judas.Kiss.1998.MULTi.VFF.1080p.WEBRip.AC3.x264-TireXo (1998) [tt0138541] 1080p.mkv
Is it a knowed bug ? Do u need specific information to help ?

Thanks

Re: Copy is done without renaming while log says otherwise

Posted: 09 Apr 2021, 10:04
by rednoah
Considering that moving and renaming is a single file system operation (i.e. not two separate operations) as far as FileBot is concerned, meaning it can't really half work half not work, the behaviour your describe is most strange and unusual.

My best guess would be some kind of display issue, i.e. file is renamed, but Explorer doesn't show it that way. Or some other 3rd party process moving / renaming files.

Re: Copy is done without renaming while log says otherwise

Posted: 18 Apr 2021, 11:47
by Brax
Hi,

Thanks for your answered. It could be a problem from of of my NAS (Which has unidentified reboots lately). Is the file copied with the same name, and renamed once in place ?

The renaming isn't done, and the copy is. No caching issue.

Re: Copy is done without renaming while log says otherwise

Posted: 18 Apr 2021, 12:34
by rednoah
Brax wrote: 18 Apr 2021, 11:47 Is the file copied with the same name, and renamed once in place ?
No.


FileBot is doing something akin to this:

Code: Select all

cp /input/A.txt /output/B.txt
:idea: This means that there is no point in time where either /input/B.txt or /output/A.txt exist, because the copy operation can copy from any file path to any other file path, no move / rename operation required.

Re: Copy is done without renaming while log says otherwise

Posted: 23 Apr 2021, 21:10
by Brax
Thanks

I did think it wasn't possible. I still can't figure the difference between the log target file name and the real target file name then : In my example how could the target file name from the log be renamed as this ?
Judas Kiss (1998) [tt0138541] 1080p.mkv --> Judas.Kiss.1998.MULTi.VFF.1080p.WEBRip.AC3.x264-TireXo (1998) [tt0138541] 1080p.mkv

Re: Copy is done without renaming while log says otherwise

Posted: 24 Apr 2021, 03:03
by rednoah
It can't. If FileBot says that it moved the file to Path A but you somehow find a file at Path B, then we're missing something else - unrelated to FileBot - going on.


Here's my best guess, but it really really could be anything:
rednoah wrote: 09 Apr 2021, 10:04 My best guess would be some kind of display issue, i.e. file is renamed, but Explorer doesn't show it that way. Or some other 3rd party process moving / renaming files.

:idea: If you're technical, and you really believe FileBot is copying files incorrectly, then you can always perform the copy operation yourself with your own custom code:
viewtopic.php?t=4915