473,503 Members | 2,167 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Portable Filesystem Library

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
4 5261
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
"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
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

"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
5791
by: Peter Hansen | last post by:
The term "mock filesystem" refers to code allowing unit or acceptance tests to create, read and write, and manipulate in other ways "virtual" files, without any actual disk access. Everything is...
18
3138
by: perseus | last post by:
It is really crazy! I need to use the Boost filesystem for the manipulation of directories, and I have no idea how to install this filesystem on my IBM-compatible machine. Does anyone up here know...
5
2003
by: Henri Schomäcker | last post by:
Hi folks, I have a quite big class, which I want to use on UNIX-like systems and on win32. Until now, everything is absolutely portable. But now I need to read a directory and use the os...
6
5380
by: Shaun Heveron | last post by:
Hi, I'm working on a portable ANSI C++ application designed to compile and execute under Windows and LINUX/UNIX. Is there a portable way of obtaining the current working directory? Sorry, if...
385
16876
by: Xah Lee | last post by:
Jargons of Info Tech industry (A Love of Jargons) Xah Lee, 2002 Feb People in the computing field like to spur the use of spurious jargons. The less educated they are, the more they like...
131
6018
by: pemo | last post by:
Is C really portable? And, apologies, but this is possibly a little OT? In c.l.c we often see 'not portable' comments, but I wonder just how portable C apps really are. I don't write...
3
361
by: yancheng.cheok | last post by:
i have a vendor function, which need to take into FILE* as function arguement. vendor_function_read_and_process(FILE* f) however, by reading from disk file during run-time, we get performance...
2
4567
by: Javier | last post by:
Hello all, I'm trying to remove a hidden file (in UNIX) using the Boost::filesystem library. This is what I have: #include <boost/filesystem/operations.hpp> namespace...
23
3304
by: asit | last post by:
what is the difference between portable C, posix C and windows C ???
0
7205
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7093
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7353
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5596
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5023
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3180
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3170
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1521
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
747
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.