1 msgWide Streams
4 msgMINGW I/O support for file sizes > 2GB (LFS ...
2 msg#define WINVER 0x0400
11 msgWhy does g++ not link with libstdc++?
3 msghow to compile and link a library
1 msgHey Guys
5 msgCompile error using mingw
2 msg'include/c++/ext' missing fromgcc-part-c++-4.3....
1 msgFMTID_SummaryInformation andFMTID_UserDefinedPr...
2 msghow to realize mouse programming

looking for tiny light cross platform filesyste...
\ Meir (6 May 2008)
. \ ATS (7 May 2008)
. \ Tor Lillqvist (8 May 2008)

2 msgMinGW GCC Development Plan
3 msghow to use the read/write
74 msgGCC 4.3.0 20080502 (alpha) Released - Please he...
10 msgMinGW gcc 3.x, 4.x and exceptions
4 msgdllwrap 2.17.50 20060824
12 msgstrtod is not C99-compatible
4 msgTest program crashes with g++ 4.2.1-dw2 usingli...
25 msgimlib2
5 msgDisassembly of stack frame
Subject:Re: looking for tiny light cross platform filesystemlibrary
Group:Mingw-users
From:Tor Lillqvist
Date:8 May 2008


 
> i need in my application to to get all files names

If you really mean *all* file names, then one thing you must look out
for carefully is the fact that file names on Windows (NTFS and
presumably CIFS volumes, at least) are in Unicode (UTF-16) on the file
systems (volumes) and in the kernel. You must look for a library that
takes this into account. A library that returns file names just as
plain char* strings in the system codepage (i.e. the encoding used by
C library functions like fopen() and open()) on Windows won't be able
to return all possible file names.

As your domain is .il, you might even come across such file names
regularly. I mean file names in Hebrew or Arabic on English Windows
boxes.

I don't know if GLib is small enough for you, but GLib is
cross-platform, and on Windows its functions take and return file
names encoded in UTF-8, which thus is able to represent all possible
file names on Windows.

> and [their] properties ( read write executable and so on ) but cross platform

Here GLib does not really offer any good solution. Note that
especially the concept of executability is not really well defined. If
a file on POSIX has execute permission for the program, but in fact is
not an executable binary file for the machine architecture in
question, nor a script for an interpreter that would exist on the
machine, is it still executable in your opinion?

In general file protections are handled very differently on
POSIX-based systems (the well-known rwxrwxrwx bits) and Windows
(FAT-style readonly attribute plus ACLs). Some POSIX file systems also
have ACLs.

And for a file stored on network file servers, you really can never
know if the protection information the file server claims for it is
just fake and doesn't match the actual protection applied when opening
the file... The only 100% sure way to know if you can read or write to
a file is to try. The same for executing a file.

--tml

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
MinGW-users mailing list
MinGW-users

You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users


© 2004-2008 readlist.com