Subject: [Boost-bugs] [Boost C++ Libraries] #2657: Feature request: readlink, nlink, copy_symlink, copy_directory, copy
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-01-14 13:33:19
#2657: Feature request: readlink, nlink, copy_symlink, copy_directory, copy
------------------------------+---------------------------------------------
Reporter: bemandawes | Owner: bemandawes
Type: Feature Requests | Status: new
Milestone: Boost 1.38.0 | Component: None
Version: Boost 1.37.0 | Severity: Problem
Keywords: |
------------------------------+---------------------------------------------
Walter Landry writes,
I have recently upgraded from 1.32 to the current prerelease, and it
feels like filesystem is missing a few convenience functions.
1) readlink: There is a way to create a symlink, but then no way to
query it later.
2) nlink: Similarly, we can create a hard link, but can not query
its link count.
3) copy_symlink: Note that this requires readlink in order to
function.
4) copy_directory: create_directory creates directories with the
mode S_IRWXU|S_IRWXG|S_IRWXO. That seems like a security hole
waiting to happen. This would at least provide a way of
inheriting access properties.
5) copy(): This would check what the first argument is and invoke
the appropriate function (copy_file, copy_symlink,
copy_directory).
Except for nlink, I have already implemented all of these functions
because I needed them. Is there any interest in getting these
functions into the filesystem library?
Cheers,
Walter Landry
wlandry_at_[hidden]
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/2657> 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:49:59 UTC