Folder rename preset

Any questions? Need some help?
Post Reply
mosteanuv
Posts: 2
Joined: 18 May 2022, 10:32

Folder rename preset

Post by mosteanuv »

Hey guys,

Love the app but I can't figure out how to rename a folder with the name of the files that are inside it.

Ex:
"Captain America / Captain America / captain america s03e01.mkv"
to become
"Captain America / Captain America s03/ captain america s03e01.mkv"

even if it becomes
"Captain America / Captain America s03e01/ captain america s03e01.mkv" it is ok because I can bulkrename it
User avatar
rednoah
The Source
Posts: 20931
Joined: 16 Nov 2011, 08:59

Re: Folder rename preset

Post by rednoah »

e.g.

Code: Select all

X:/{n}/{n} S{s.pad(2)}/{n} {s00e00} {t}
:arrow: Please read FAQ #1 and learn how format expressions work.



:idea: Since you're just rewriting the file path using only information already in the file path, Plain File Mode can also work in this case:

Code: Select all

{f.dir.dir}/{fn.match(/s\d+/)}/{fn}
:idea: Please read the FAQ and How to Request Help.
mosteanuv
Posts: 2
Joined: 18 May 2022, 10:32

Re: Folder rename preset

Post by mosteanuv »

That worked like magic! Thank you!
Post Reply