[CS-FSLUG] Need a volunteer to test a program

Nathan T. celerate at gmail.com
Sun Nov 13 00:05:14 CST 2005


Hi everyone

I've written a program to make things easier when building RPMs for ark
linux, there's only one problem and that is that the code doesn't work right
under Ark Linux. The code should work as far as I know, but when I run it in
Ark it tends to think plain text files are folders and as such it reports
that it cannot browse the contents of those plain text files as if they were
folders ( I wonder why ;-) ).

As long as the volunteers know some C++ and know how to compile using GCC in
Linux this should be very easy. I must warn any potential volunteers though
that this early version of the software could wind up in an endless loop if
there are symlinks leading to one another so it's best to pick a reasonable
small folder that has only a few subfolders, and the software will take a
very long time if you give it something like an entire partition to go
through.

The program does not yet work with shortcuts such as using ./ instead of the
current path, or using ~ instead of /home/yourname, if anyone knows how
other programs implement that kind of thing that would be very helpful :-) .


Basic usage of the program

listtree -s -d # -p $
-s -- Removes the current path from the output.
-d followed by a number -- How many levels deep the program should go, ie 2:
/home/arklinux/ 3: /home/arklinux/folder/
-p followed by a string in quotation marks -- Uses the given text as the
file path instead of what the actual path is.

Compile the program using "g++ -o listtree listtree.cpp"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ofb.biz/pipermail/christiansource_ofb.biz/attachments/20051113/fa2e935f/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: listtree.cpp
Type: application/octet-stream
Size: 4659 bytes
Desc: not available
URL: <http://ofb.biz/pipermail/christiansource_ofb.biz/attachments/20051113/fa2e935f/attachment.obj>


More information about the Christiansource mailing list