Page 1 of 1

Search for filename/path length

Posted: 10 May 2009 21:32
by alxwz
Maybe a little exotic, but I'd really appreciate being able to search for files whose filenames or, more importantly, complete paths (incl. filenames) exceed a certain number of characters.

There are some free solutions to do that, and a plug-in for Total Commander, but all of them simply give you a list.

What I'd like to have, is a list of results I can immediately work with, like a usual file manager results window, which especially allows you to immediately rename the item or go to that folder (if you have to work your way up the path to shorten it).

There is indeed one file manager that does this: FileBoss from The Utility Factory (http://theutilityfactory.com). However, I'm not going to spend $50 for just one feature, esp. not for something that looks like FileBoss.

The reason why this is useful for me: For a long time, I used Total Commander for file synchronization. TC, like many other apps, can handle only paths up to 255 characters. The developer of TC decided to, when hitting this limit, by silently chop off parts of the filenames (extension first!). So now I have loads (hundreds of thousands, I don't know) of long-path files somewhere on my drives, with missing extensions (and maybe other parts of the filenames). I'd like to clean this up, shorten paths where necessary, and repair the missing extensions.

Re: Search for filename/path length

Posted: 12 May 2009 07:08
by admin
Okay, XY cannot search for names by their length, but
(a) XY can display the length in a column (called "Len") in the file list, and
(b) XY can handle overlong filenames without problem since a few days ago.

These two things should make you happy. You simply list all items in the drive or folder you are interested in (make a search for *), then you order them by length using the Len column, then you can preview and rename them right in the list.

Re: Search for filename/path length

Posted: 17 Nov 2009 10:39
by admin
Works now! :D (v8.60.0107)

E.g. to find all items whose full name is longer than 100 characters, enter into the Name field on the Find Files tab:

Code: Select all

len: > 100

Re: Search for filename/path length

Posted: 23 Jan 2010 16:40
by SkyFrontier
Currently (since 2009-11-17) you can.

Press CTRL+F, enter the path into the Location field (or mark the "Auto sync" check box below/at right the Location field) and type this into the NAME field:

len: > 254

Re: Search for filename/path length

Posted: 14 Feb 2010 01:55
by alxwz
Hi,

@Don: Thank you very much for adding that! Have been away for a while, and what a nice surprise!
Now, if I only hadn't already bought that other file manager...
No competition for XY, though.

I'm currently reconsidering XY as my standard file manager, but that will be subject of another post.

And many thanks for Dual Pane, too! Lack of dual pane view was indeed the main reason for me letting go of XY in the past.

Regards,
Alex