[Boost-bugs] [Boost C++ Libraries] #6884: Add functionality to enumerate filesystem roots

Subject: [Boost-bugs] [Boost C++ Libraries] #6884: Add functionality to enumerate filesystem roots
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-05-09 23:51:47


#6884: Add functionality to enumerate filesystem roots
------------------------------------------------+---------------------------
 Reporter: Erik Jensen <Erik.Jensen@…> | Owner: bemandawes
     Type: Feature Requests | Status: new
Milestone: To Be Determined | Component: filesystem
  Version: Boost 1.49.0 | Severity: Not Applicable
 Keywords: |
------------------------------------------------+---------------------------
 Unlike POSIX systems, which root everything at '/', some systems (notably
 Windows) provide multiple filesystem roots.

 In order to abstract this difference in a cross-platform way, I propose
 that a new function be added to boost::filesystem to return a list of path
 objects, one for each filesystem root. On a POSIX system, this would
 simply return !["/"], but on Windows, it would return, e.g., ["C:/",
 "D:/"]. This would make it possible to implement something like a
 filesystem browser in a platform-independent manner.

 There is precedence for this functionality in several cross-platform
 libraries, including Java (File.listRoots), Qt (QDir::drives), and Poco
 (Poco::Path::listRoots).

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/6884>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:09 UTC