Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any good boost::filesystem alternative? [closed]

Tags:

Is there any portable c++ library to work with the filesystem?

I know about boost::filesystem, but I need to know if there is any other.

Thanks!

like image 383
Damian Avatar asked Apr 06 '11 04:04

Damian


People also ask

Is boost filesystem header only?

Unlike a large portion of the Boost ecosystem, boost::filesystem is not header-only.

What is boost :: filesystem :: path?

boost::filesystem::path is the central class in Boost. Filesystem for representing and processing paths. Definitions can be found in the namespace boost::filesystem and in the header file boost/filesystem. hpp . Paths can be built by passing a string to the constructor of boost::filesystem::path (see Example 35.1).

What is Boost filesystem?

The Boost Filesystem Library provides portable facilities to query and manipulate paths, files, and directories. The motivation for the library is the need to be able to perform portable script-like operations from within C++ programs.


2 Answers

POCO has similar functionality which you can find under Foundation/FileSystem.

like image 184
Duck Avatar answered Sep 29 '22 12:09

Duck


There is at least one more solution worth mentioning - STLSoft, a set of BSD-like licensed libraries, contains a cross-platform wrapper under Windows & Unix native filesystem APIs - PlatformSTL project. The benefit in comparison with boost::filesystem is no need to build anything, the whole library is header-only, you can simply include it in your project. The bad side is lack of documentation though, I spent quite some time to figure out how to use it.

like image 20
Dmitry Avatar answered Sep 29 '22 12:09

Dmitry