Page 1 of 1

Large Files Finder v1.4

Posted: Sun 22 Apr 2012, 21:37
by SFR
Minimalistic right-click app that may be helpful in finding large, redundant files, for instance: to keep your savefile slim and healthy.
Gdmap has too fuzzy look (as for me), pfind has too many options as for such task and the ROX-Filer's 'find' function is powerful, but too inconvenient in use for me, so I wrote this one.

Usage:
1. Right-click on any folder -> Dir '...' -> Large Files Finder
2. Sometimes it takes some time to find all of them...
3. The list of files will appear, already sorted by size (descending).
4. Double click on an item to locate it using ROX-Filer.

Limitation (no longer applies, since v1.3):
Due to use of | as delimiter (required by <tree> widget), files with | in its filename won't be processed properly.
But I think it's rare enough (I've never seen one), so acceptable.
Everything else, like *? :'\" is ok...

Works with recent versions of Precise, Lucid, Slacko, Wary and Saluki (if ROX-Filer is installed).
Written in Lupu-528.005 & Slacko-5.5.

______________________________________________

Update 2012-04-26, version 1.1:
- Added: now works also with links to folders
- Added: now finds all kinds of files, except directories
- Added: localisation by don570
- Added: can be launched from terminal window without specyfing the full path to the app (useful for testing), eg.: lff /path/to/folder (thanks to don570)

Update 2013-06-25, version 1.2:
- <entry> replaced with <spinbutton>
- fixed pinstall.sh script
- many internal improvements
- i18n (gettext)

Update 2013-08-13, version 1.2.1:
- if launched from terminal without an argument, current directory will be used (thanks to Pelo)

Update 2014-03-27, version 1.3:
- better handling of filenames with special chars (like | ` \ etc.)
- faster execution
- some other minor improvements

Update 2015-12-31, version 1.4:
- the slowest part rewritten in pure awk, so execution time is much faster
- compatibility with Fatdog
- category in pet.specs changed from "BuildingBlock" to "Filesystem"
- minor fixes

Greetings!

Posted: Thu 26 Apr 2012, 17:00
by don570
It works well and can be useful given the difficulty in using pfind!!
I'll put in my right click package.

I noticed that links are ignored. For instance

/root/puppy-preference/audio will seem to be empty.



___________________________________________

Posted: Thu 26 Apr 2012, 21:48
by SFR
Hi Don.

Thanks for putting it in "Right click apps" suite. :)

As for links exclusion:
Well, at the beginning it was "semi-intentional" decision (find's -type parameter can hold only one letter: d=dir, l=link, f=file, etc.).
"Minor problem" I said to myself, as the size of links is (AFAIK) always below 1k.
But, to be honest, it would be more elegant to include links too, so I did a small research and found that the secret was: find ! -type d
and now LFF is able to find all kinds of files (regular files, links, devices, etc.) except directories.
Of course to find any link, the size at the initial window must be set to 0 or erased.

Another upgrade:
Until now LFF's right-click worked only with folders and (I didn't mention this earlier) mount points.
Now it works also with links to folders, eg. /mnt/home, which is (in my case) link to /initrd/mnt/dev_save.

First post updated.

EDIT:
don570 wrote:/root/puppy-preference/audio
Oh, you did mean links to folders, not links included in a folder. It was late night and I overlooked .../audio.
Fortunately I fixed both issues; apparently I have read this correctly anyway, subconsciously. :lol:

Localisation: I gave it a try with another language and it works perfectly, thanks again.
So if anyone would like to translate the app to another languages, take a look at /usr/local/LargeFilesFinder/locals/en_US:english and please post/PM me the modified file.

Greetings!

Posted: Tue 25 Jun 2013, 20:04
by SFR
Version 1.2:
- <entry> replaced with <spinbutton>
- fixed pinstall.sh script
- lots of internal improvements (~210% faster execution...what proves how bad the previous code really was...)
- i18n (gettext)

Please uninstall any previous version before installing this one!

First post updated!

Greetings!

Posted: Tue 25 Jun 2013, 21:33
by Jasper
Hi SFR,

I use Precise 5.6 and I believe you could add Precise to your opening list as it works superbly.

I have a personal preference for it to open at 1 M (rather than 1 K) and ask if and how I might do that?

My regards and thanks

Addendum:

Thank you again - for your extra help on your post below.

Posted: Tue 25 Jun 2013, 21:43
by SFR
Hey Jasper

It's just a matter to modify one line:
1. Open the script (geany /usr/local/bin/lff)
2. Replace the following line (no. 31):

Code: Select all

<radiobutton><variable>UNITM</variable><label>M</label></radiobutton>
with this:

Code: Select all

<radiobutton><variable>UNITM</variable><default>true</default><label>M</label></radiobutton>
Greetings!

Slacko 5.3.3 and 5.5

Posted: Tue 13 Aug 2013, 06:40
by Pelo
Bonjour.
I opened a terminal in root and asked files > 1 MB. Nothing found. Surprising. Could you analyze the message (no operand) and explain what i missed.
Your pet is of great interest to point out why my savefiles is so full.

Posted: Tue 13 Aug 2013, 07:55
by SFR
Hi Pelo

Well, if you're running it from terminal window, you need also type a path to be searched, e.g.:

Code: Select all

lff /root
Anyway, I fixed this (see the first post, version 1.2.1), so if no argument is specified, lff will scan current working directory.

BTW, you can also launch LFF from right-click menu (if you're using ROX).

Thanks &
Greetings!

LFF Version 1.2.1 does its job

Posted: Tue 13 Aug 2013, 14:52
by Pelo
LFF Version 1.2.1 does its job (Slacko 5.5)
This pet will be very useful for me. Thanks.

Posted: Thu 27 Mar 2014, 10:17
by SFR
Version 1.3:
- better handling of filenames with some special chars (like | ` \ etc.)
- faster execution
- some other minor improvements

First post updated!

EDIT: there was still a bug - fixed and reuploaded (after 1 download).

Greetings!

Posted: Wed 30 Dec 2015, 18:28
by greengeek
Handy utility SFR (thanks for pointing me to it don570). I just tried the 1.3 pet and the install splash says that it is installed in the utility menu but I couldn't find it there. Then I see it is available from right click (i'm slow this morning) and that works great (using Slacko 5.6 derivative).
If you have plans for future changes I think it could be worthwhile to add it to the utility menu too. (or perhaps to filesystem menu alongside pfind??)
cheers!
.

Posted: Wed 30 Dec 2015, 19:53
by don570
greengeek wrote:says that it is installed in the utility menu but I couldn't find it there
The package probably wasn't made correctly. The category can be chosen
when making a pet package. You can choose to keep it off the start menu
at that time.

______________________________________________

Posted: Thu 31 Dec 2015, 15:35
by SFR
Hi guys

@Greengeek: LFF doesn't provide a menu entry and doesn't have a built-in file browser - it's right-click-only utility.
As for the splash, see below.

@Don570: Hmm, any hint what should have been chosen in dir2pet?
If I choose 'BuildingBlock' (as it is in v1.3, see pet.specs file), PPM says the category is 'Utility'.
If I choose 'NO CATEGORY' - same story...
However, there's also "...note, this package does not have a menu entry" info displayed just below the category line.
___________

Version 1.4:
- the slowest part rewritten in pure awk, so execution time is much faster
- compatibility with Fatdog
- category in pet.specs changed from "BuildingBlock" to "Filesystem"
- minor fixes

Greetings!

Posted: Thu 31 Dec 2015, 19:45
by greengeek
SFR wrote: LFF doesn't provide a menu entry ... - it's right-click-only utility.
However, there's also "...note, this package does not have a menu entry" info displayed just below the category line.
Oops, my mistake. Must have not read the splash correctly.. Sorry about that!
cheers, and Happy New Year!