My custom format moves files up in the folder tree

Support for macOS users
Post Reply
botuser
Posts: 14
Joined: 28 Jan 2019, 02:50

My custom format moves files up in the folder tree

Post by botuser »

I am using this preset for renaming movie files:

Files: Use Original Files selection
Format: {plex.name}/{plex.name}


However, when I run this preset it moves files up the folder tree. For example, I have a file in:
D:\Movies\To Watch\Movie to be renamed.mp4

when I run the preset it moves to
D:\Movies\Movie Name\Movie Renamed.mp4

Am I using the wrong syntax?

Thanks.
User avatar
rednoah
The Source
Posts: 22854
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Help with a rename preset

Post by rednoah »

:idea: If your format generates a relative file path, then FileBot will try to integrate that relatively to the current file structure.


:?: Where do you want to move / organize files? The file path given above looks good to me in the given context:

Code: Select all

D:\Movies\Avatar (2009)\Avatar (2009).mp4

:idea: You can generate absolute file paths to organize files paths absolutely:
https://www.filebot.net/manual.html

Format: Select all

{ drive }/Media/{ plex.id }



:!: Note that {plex.name}/{plex.name} is a bad idea because you will not get what you want once you process subtitle files:

Format: Select all

Avatar (2009).eng/Avatar (2009).eng.srt
:idea: Please read the FAQ and How to Request Help.
botuser
Posts: 14
Joined: 28 Jan 2019, 02:50

Re: My custom format moves files up in the folder tree

Post by botuser »

Thanks for the detailed explanation!

Ideally I would like the movie folder to be created relative to the location where the file is opened.

So in the case of:

Code: Select all

D:\Movies\To Watch\Movie to be renamed.mp4
I would like it to be located in:

Code: Select all

D:\Movies\To Watch\[Name of Movie]\Movie Renamed.mp4
Is there a way to set that?
User avatar
rednoah
The Source
Posts: 22854
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: My custom format moves files up in the folder tree

Post by rednoah »

You can generate an absolute path to move / rename files exactly as specified by that absolute path:

Format: Select all

{ folder }/{ ~plex }
:idea: Please read the FAQ and How to Request Help.
Post Reply