Large Files Finder v1.4

Miscellaneous tools
Post Reply
Message
Author
User avatar
SFR
Posts: 1800
Joined: Wed 26 Oct 2011, 21:52

Large Files Finder v1.4

#1 Post 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!
Attachments
LargeFilesFinder-1.4.pet
MD5: 0906787be62d348171817700389d9110 LargeFilesFinder-1.4.pet
(3.12 KiB) Downloaded 581 times
LargeFilesFinder-1.3.pet
(2.85 KiB) Downloaded 743 times
LargeFilesFinder-1.2.1.pet
(2.56 KiB) Downloaded 832 times
LargeFilesFinder-1.2.pet
(2.55 KiB) Downloaded 836 times
LargeFilesFinder-1.1.pet
Large Files Finder v1.1; localisation + few expansions
(3.01 KiB) Downloaded 1144 times
LargeFilesFinder-1.0.pet
Large Files Finder v1.0
(2.32 KiB) Downloaded 1035 times
LFF_screenshot_1.png
(10.91 KiB) Downloaded 2304 times
LFF_screenshot_2.png
(102.99 KiB) Downloaded 2145 times
Last edited by SFR on Thu 31 Dec 2015, 15:32, edited 14 times in total.
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#2 Post 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.



___________________________________________

User avatar
SFR
Posts: 1800
Joined: Wed 26 Oct 2011, 21:52

#3 Post 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!
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]

User avatar
SFR
Posts: 1800
Joined: Wed 26 Oct 2011, 21:52

#4 Post 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!
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]

Jasper

#5 Post 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.
Last edited by Jasper on Tue 25 Jun 2013, 22:22, edited 1 time in total.

User avatar
SFR
Posts: 1800
Joined: Wed 26 Oct 2011, 21:52

#6 Post 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!
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]

Pelo

Slacko 5.3.3 and 5.5

#7 Post 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.
Attachments
LFF.png
(15.75 KiB) Downloaded 1375 times

User avatar
SFR
Posts: 1800
Joined: Wed 26 Oct 2011, 21:52

#8 Post 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!
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]

Pelo

LFF Version 1.2.1 does its job

#9 Post by Pelo »

LFF Version 1.2.1 does its job (Slacko 5.5)
This pet will be very useful for me. Thanks.

User avatar
SFR
Posts: 1800
Joined: Wed 26 Oct 2011, 21:52

#10 Post 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!
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#11 Post 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!
.

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#12 Post 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.

______________________________________________

User avatar
SFR
Posts: 1800
Joined: Wed 26 Oct 2011, 21:52

#13 Post 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!
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#14 Post 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!

Post Reply