turned on the 'show parent folder ..' in prefs
and the '..' is showing as a folder but is not included in the folders group
how do I get it into the is_dir
group please ?
turned on the 'show parent folder ..' in prefs
and the '..' is showing as a folder but is not included in the folders group
how do I get it into the is_dir
group please ?
Same here, although I would prefer that this ".." item is not part of any group at all and simply show up as the very first item in a lister.
Changing your Evaluator code to check for “..” should work.
Hm, how do I process lister items with ".."?
Because, when my eval group is defined to show up for columns "Created" or "Modified" only, I never will get an item with ".." in the script.
Just date and time values will hit the script - just checked this.
When the first line of a script is for example
if ( (is_dir) || value == ".." ) { return };
this won't affect the grouping at all and put ".." into group Unspecified.
The name should be given to you.
Leo, unfortunately it's not the case.
Currently option for ".." is enabled:
I've put this line into the appropriate evaluator group to write some logs
Output(name);
and do not see an item with ".." in logs:
elseif (name == "..")
not working
Evaluator columns aren't even called for the ".." item in that case. Which makes sense as they wouldn't work in most cases.
It'll group the same way it groups with internal columns. There's an option in Preferences to hide the ".." item when grouping, otherwise it goes into "Unspecified".
This is my final impression, too. Thanks for the discussion anyway
I'll turn it off for now.
Perhaps yoiu could include ..
as an is_dir
if thats possible, please.
I think passing ".." to evaluator columns at all would cause more problems than it would be worth, unless there was a way to make that opt-in (which most people would overlook anyway). Doesn't really seem worth it to me, at least at first glance.