Author Topic: coloring rule for overlong file paths?  (Read 232 times)

multicart

  • Newbie
  • *
  • Posts: 11
    • View Profile
coloring rule for overlong file paths?
« on: November 13, 2024, 11:18:58 »
Hi all,
is it currently possible to define a file coloring rule for overlong file paths?
i.e. if the path has more than 260 characters, apply the coloring rule

regards, m.

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4412
    • View Profile
    • Multi Commander
Re: coloring rule for overlong file paths?
« Reply #1 on: November 13, 2024, 15:43:40 »
Yes

In color rules editor. Create a rule for it and select "Plugin (Extended Properties)" And Create a new rule item and add property "Extended - Path Length" and then in the value dialog enter "More Than" - "260"

multicart

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: coloring rule for overlong file paths?
« Reply #2 on: November 13, 2024, 22:43:52 »
Thank you, Mathias,

I also had to activate the color rules in the Explorer panel settings, but now it works.  :)
« Last Edit: November 13, 2024, 22:45:34 by multicart »

multicart

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: coloring rule for overlong file paths?
« Reply #3 on: Today at 09:18:42 »
I had a case where an overlong file path was calculated as 200 chars, although it was over 260 chars long. (I temporarily displayed a column showing the path length.)
Thus, it was not colored according to the coloring rule.

It was a pdf file with multiple dashes, dots, underscores, and spaces in its name.
But for all other files in the same folder, the file path length was calculated correctly, as it seemed.

If you know of any way, Mathias, how to make the file path calculation more reliable, please do so. Many thanks in advance.

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4412
    • View Profile
    • Multi Commander
Re: coloring rule for overlong file paths?
« Reply #4 on: Today at 15:58:12 »
Path does not need to be calculated as such.. It just ask how long the total path is. does not matter what characters it is.
I'm not able to make it show wrong value. so not sure how that is even possible

AlanJB

  • VIP Member
  • *****
  • Posts: 436
  • VERY old Programmer
    • View Profile
Re: coloring rule for overlong file paths?
« Reply #5 on: Today at 16:23:23 »
Just a WAG, but Unicode characters in the name perhaps?