[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
new directory features
From: |
Matthias Weiss |
Subject: |
new directory features |
Date: |
Tue, 23 Oct 2001 15:55:20 +0200 |
User-agent: |
Mutt/1.3.17i |
Hi all,
I've used code from Paul Davis libpbd and modified it to
suite my needs.
It's a directory scanner that returns a vector of strings that
are the names of the directory entries. One can use shell wild
cards and restrict the result to specified types (regular files,
directories, ... ) as well as further ristrictions ( size, owner,
... ).
I'd love to see the code merged into libcommonc++, maybe in the
Dir class. If you like the code please contact me, I have to
ask Paul to get his OK too.
The attached tarball includes a demo program - simply type make
to build it.
Some critics:
-the current class totaly lacks an error concept
-I doubt that it runs on a Windoze box, I've only tested it with linux.
-it offers no further functionality beyond that of the scanner
-for some reason the C-library doesn't recognise symbolic links
-I didn't spend time thinking about security as suggested in the
security FAQ (at least I think I read something about it there)
dir.tar.gz
Description: Binary data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- new directory features,
Matthias Weiss <=