Subj : Re: C++ API for files & directory manipulation To : comp.programming From : Matthias Kaeppler Date : Wed Aug 31 2005 12:14 pm Ram wrote: > I am looking for a portable library in C++ for manipulating files & > directories e.g. directory traversal, file addition/removal, etc. > Something that can work on Windows, Linux as well as Mac. > > Anyone aware of the same? According to your other posts, you don't sound very enthusiastic about boost::filesystem... why so? I think it's pretty good, as far as it goes. As long as you don't need more advanced and complex functionality like asynchronous operations, it should be just what you're looking for. It's very lightweight, but its functionality also doesn't go much further than iterating over directories, expanding paths or do simple file operations. One thing I don't like about boost::filesystem is the IMHO overly emphasized use of exceptions. The library tends to throw on every occasion imaginable. If you, for example, want to test whether a file is a directory, is_directory() will throw if the path passed to it is /not/ a directory... Sorry, that's just insane, but it's the price you have to pay. Regards, Matthias .