Boost.Filesystem

Boost.Filesystem library provides portable facilities to query and manipulate paths, files, and directories.
Download

Boost.Filesystem Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Boost Software Licen...
  • Price:
  • FREE
  • Publisher Name:
  • Beman Dawes
  • Publisher web site:
  • http://www.boost.org/doc/libs/1_35_0/libs/filesystem/doc/index.htm

Boost.Filesystem Tags


Boost.Filesystem Description

Boost.Filesystem library provides portable facilities to query and manipulate paths, files, and directories. Boost.Filesystem is a library which provides portable facilities to query and manipulate paths, files, and directories.The motivation for the library is the need to perform portable script-like operations from within C++ programs. The intent is not to compete with Python, Perl, or shell languages, but rather to provide portable filesystem operations when C++ is already the language of choice. The design encourages, but does not require, safe and portable usage.Programs using the library are portable, both in the sense that the syntax of program code is portable, and the sense that the semantics or behavior of code is portable. The generic path grammar is another important aid to portability.Usage is safe in the sense that errors cannot be ignored since most functions throw C++ exceptions when errors are detected. This is also convenient for users because it alleviates the need to explicitly check error return codes.A proposal, N1975, to include Boost.Filesystem in Technical Report 2 has been accepted by the C++ Standards Committee. The Boost.Filesystem library will stay in alignment with the TR2 Filesystem proposal as it works its way through the TR2 process. Note, however, that namespaces and header granularity differs between Boost.Filesystem and the TR2 proposal.The Boost.Filesystem library provides several headers:· Header < boost/filesystem.hpp > provides class basic_path, a portable mechanism for representing paths in C++ programs. Typedefs path and wpath ease the most common usages of basic_path. Operational functions provide useful query and maintenance operations on files and directories. Class basic_directory_iterator with typdefs directory_iterator and wdirectory_iterator provide iteration over the contents of directories. Convenience functions and classes combine lower-level functionality in useful ways. · Header < boost/filesystem/fstream.hpp > provides the same components as the C++ Standard Library's fstream header, except that files are identified by basic_path objects rather that char *'s.What's New in This Release:· Diagnostics moved to the separate Boost.System library.· current_path() function added to set the current directory path.· Test coverage extended.· A few minor implementation fixes.


Boost.Filesystem Related Software