By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,898 Members | 2,012 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,898 IT Pros & Developers. It's quick & easy.

Portable Filesystem Library

P: n/a
Hi!

I'm working on a project that has to be portable (Windows, Linux, Unix (IDE
is VisualC++) ). What I need is the list of files in a certain directory
(+subdirs), but I also need to know some file attributes like size and 'date
of last change'.
Anybody knows a lib that can do this for me?

Thanks in advance
Janina
Jul 19 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Janina Kramer wrote:
Hi!

I'm working on a project that has to be portable (Windows, Linux,
Unix (IDE is VisualC++) ). What I need is the list of files in a
certain directory (+subdirs), but I also need to know some file
attributes like size and 'date of last change'.
Anybody knows a lib that can do this for me?


There was a beta library on Boost ( http://www.boost.org ) . I dunno its
state. If all else fails you might be able to use POSIX (and limit a loads
of things :-( ).

Attila
Jul 19 '05 #2

P: n/a
"Attila Feher" <at**********@lmf.ericsson.se> wrote in message news:<bi**********@newstree.wise.edt.ericsson.se>. ..
Janina Kramer wrote:
Hi!

I'm working on a project that has to be portable (Windows, Linux,
Unix (IDE is VisualC++) ). What I need is the list of files in a
certain directory (+subdirs), but I also need to know some file
attributes like size and 'date of last change'.
Anybody knows a lib that can do this for me?


There was a beta library on Boost ( http://www.boost.org ) . I dunno its
state. If all else fails you might be able to use POSIX (and limit a loads
of things :-( ).

Attila


I've used the boost filesystem library on both Windows and Linux in
applications, and it seems to work nicely.

Jay
Jul 19 '05 #3

P: n/a
Hi Janina

"Janina Kramer" <j.******@school-sucks.com> schrieb im Newsbeitrag
news:bi*************@news.t-online.com...
Hi!

I'm working on a project that has to be portable (Windows, Linux, Unix (IDE is VisualC++) ). What I need is the list of files in a certain directory
(+subdirs), but I also need to know some file attributes like size and 'date of last change'.
Anybody knows a lib that can do this for me?

Thanks in advance
Janina


I checked out boost.org myself too, and it says there that it only supports
POSIX or Windows-like OSes.
So, I am not really sure if this includes Linux and UNIX?
If you are using it already meanwhile, you may better stick to it.

If not, you can try my 'directory-scan' classes which work for sure on
Windows, Solaris and AIX.
It was developped with JBuilder but does not use much JBuilder-specific
stuff, so it should not be too complicated to convert it for Visual C++.
You'll find the files for download and HTML documentation on
http://gemini.futurezone.com
hth
René
=======================================
C++ sources, cross-platform (UNIX and WinTel) and
covering several topics: http://gemini.futurezone.com

Jul 19 '05 #4

P: n/a

"Rene Eng" <re*****@tiscalinet.ch> wrote in message news:3f**********@news.tiscalinet.ch...
I checked out boost.org myself too, and it says there that it only supports
POSIX or Windows-like OSes.
So, I am not really sure if this includes Linux and UNIX?


POSIX is an interface standard for UNIX-like operating systems.
LINUX and UNIX should not have a problem with it.
Jul 19 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.