Having trouble with itemcount less than....
Posted: 10 Feb 2017 01:23
I'm sure I'm simply doing something quite obvious wrong, some syntax quirk, but so far I haven't been able to figure it out:
Objective: List all the directories in the current pane with an item count less than (or equal to).
These Work as Expected:
prop:#itemcount: >= 4
prop:#itemcount: > 4
prop:#itemcount: 4 (or == 4, same thing)
Those Do Not:
prop:#itemcount: < 4
prop:#itemcount: <= 4
Those WILL give 4 and less, i.e. it won't show a folder with itemcount 5, but it will show an item count of 498 as well - it shows itemcounts that contain a 4 like a string, but operate on it as an integer as well (i.e. the single-digits 5-9)
(Aside: if subfolders is checked, and attribute=directory is not, it will also include files, which I suppose makes sense as itemcount=1, though it wasn't expected behavior, at least for me, and I find it a rather useless...unless...can anyone think of a file that would list a greater itemcount than 1? Maybe a hardlink or archive? Or is there some use in scripting?)
Would appreciate some direction here.
Objective: List all the directories in the current pane with an item count less than (or equal to).
These Work as Expected:
prop:#itemcount: >= 4
prop:#itemcount: > 4
prop:#itemcount: 4 (or == 4, same thing)
Those Do Not:
prop:#itemcount: < 4
prop:#itemcount: <= 4
Those WILL give 4 and less, i.e. it won't show a folder with itemcount 5, but it will show an item count of 498 as well - it shows itemcounts that contain a 4 like a string, but operate on it as an integer as well (i.e. the single-digits 5-9)
(Aside: if subfolders is checked, and attribute=directory is not, it will also include files, which I suppose makes sense as itemcount=1, though it wasn't expected behavior, at least for me, and I find it a rather useless...unless...can anyone think of a file that would list a greater itemcount than 1? Maybe a hardlink or archive? Or is there some use in scripting?)
Would appreciate some direction here.