list files

Dolphin Service Menus

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

1
Score 50.0%
Description:

prints to file list of files in a given directory.

handy if you'd like to, say, tell a friend of yours what ebooks you have, and wouldn't feel like typing them all by hand.

hope you can find it useful :)

==========

version 0.2 (2007.02.07)
- added counting the number of items
- added the possibility to change the place where the listing is written to
- some minor changes to the code

topdesk

12 years ago

It doesn't work if in folder's name (or file's name) there are spaces.
I have solved folder's problem in this way:
for thisDir in "$*"; do

Report

BorgQueen

12 years ago

This is a very useful servicemenu.
Thank you very much.

Report

747419

12 years ago

Yes, other service-menus work fine for me (for example this one --> http://kde-apps.org/content/show.php?content=50236 ). Actually it did install properly: the icon is there, it creates a list, yet it doesn't list all the files / folders - maximum is one third of the actual content (I tried reinstalling it three or four times, always with the same effect).

The problem might be my distro, which is SuSE - which is famous for having some atypical paths. Putting listFiles.desktop in ~/.kde/share/apps/konqueror/servicemenus is propably okay, but I am not sure about listFiles.sh being in /usr/local/bin...

Report

C

caminoix

12 years ago

oh, dear. this looks really strange to me, and i have no idea what i could do about it...
putting the .sh file into /usr/local/bin is just to make it stay in the path. you can put it anywhere else, too - just modify the "exec" line in the .desktop file to point to the right location.
could you please try to run the .sh file from the console and tell me what errors it reports? (just "sh listFiles.sh ".)

Report

747419

12 years ago

Um, I am afraid you will not like this answer: after running the .sh-file via console, there is no output at all (meaning no error reports or anything).

Report

G0NZO

12 years ago

I'd suggest to modify the script so that the file that contains the list is stored not in the same dir from which you invoke the script but for instance in user's home. In fact, this way you get errors if you wanna run it from a dir on which you dont have write permissions.
Just replace
echo -e $finalList > "$thisDir.list.txt"
with
echo -e $finalList > "$HOME/$thisDir.list.txt"

Report

RocknRolf

12 years ago

Its work for me after "chmod +x listFiles.sh"

Report

747419

12 years ago

A nice idea, yet it doesn't work for me - systemwide installation failed totally (no new entry in the Contextmenu), userwide installation worked, but the saved text does contain only a minority of the files which are contained in the folder. A pitty indeed...

Report

C

caminoix

12 years ago

hmm, this is very strange indeed.
have you tried installing any other service menus? did they work properly?
may i ask, where do you have your konqueror config files?

Report

12345678910
product-maker Count: 4 Rating: 5.0
File (click to download) Version Description Downloads Date Filesize DL OCS-Install
Pling
*Needs ocs-url or ocs-store to install things
Details
license
version
0.2
updated Feb 07 2007
added Jan 27 2007
downloads 24h
0
page views 24h 1
System Tags addon