Revert when --action keeplink is used?

Any questions? Need some help?
Post Reply
junior0332
Donor
Posts: 15
Joined: 10 Jun 2015, 21:25

Revert when --action keeplink is used?

Post by junior0332 »

Hi RedNoah,

Is it possible to use the revert script when --action keeplink is used? It seems to only work when there are no symlinks are involved.
User avatar
rednoah
The Source
Posts: 23953
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Revert when --action keeplink is used?

Post by rednoah »

No. FileBot doesn't keep records about what "rename" action was used to process the files, hence it can't reverse it. The revert script assumes that files have been moved from the original location.

What happens if you try? I'd assume if you revert /original/path (link) -> /new/path (file) then it might override the link with the file.
:idea: Please read the FAQ and How to Request Help.
junior0332
Donor
Posts: 15
Joined: 10 Jun 2015, 21:25

Re: Revert when --action keeplink is used?

Post by junior0332 »

When I revert and specify the symlink at the original location, it just completes without any action.

Code: Select all

filebot -script fn:revert /server/downloads/Last.Week.Tonight.With.John.Oliver.S03E01.720p.HDTV.x264-BATV.mkv
Done ヾ(@⌒ー⌒@)ノ
Same thing if I revert the renamed file

Code: Select all

filebot -script fn:revert /server/tv\ shows/Last\ Week\ Tonight\ with\ John\ Oliver/Season\ 03/Last\ Week\ Tonight\ with\ John\ Oliver\ -\ 3x01\ -\ Episode\ 60.mkv
Done ヾ(@⌒ー⌒@)ノ
That's ok though. I kind of get why it won't work. Thanks for your time.
User avatar
rednoah
The Source
Posts: 23953
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Revert when --action keeplink is used?

Post by rednoah »

r3669 correctly reverts for all rename actions. There is also a new filebot -revert /path command which uses that revert behaviour.

The fn:revert script will not be changed, since being able to force how files are reverted (move/copy/symlink back) has some use cases.
:idea: Please read the FAQ and How to Request Help.
Post Reply