Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Help with filters (Read 731 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Help with filters

The task is to display the path in the filters, or rather part of the path - the folder in the middle of the path

Eg: g:\Audio\Metal\Swallow the Sun\2021 - Name Album

My music is sorted on the disk by genre - I want to sort genres without nested and parent folders, how to experiment with variables?

%_path% / %_directoryname%

 

Re: Help with filters

Reply #1
$directory(%path%,1) or $directory(%path%,2), change number according to path depth.

Re: Help with filters

Reply #2
@jazzthieve, Unfortunately, it does not work - different levels are displayed in a mix, despite the fact that the directories have the correct nesting levels, how can a given number of levels be cut off BEFORE and AFTER

Re: Help with filters

Reply #3
It makes no sense for the code to display differing results. It will always give the exact path depth for every path based on the path depth in the code. If the results are a differing mix then simply your nesting structure is not consistent.
Could you give examples, full paths, of where you get different results?