Opened 15 years ago
Closed 11 years ago
#1706 closed Feature Requests (fixed)
Add ability to retrieve, set file permissions
Reported by: | Beman Dawes | Owned by: | Beman Dawes |
---|---|---|---|
Milestone: | Boost 1.36.0 | Component: | filesystem |
Version: | Boost Development Trunk | Severity: | Problem |
Keywords: | Cc: |
Description
Add ability to retrieve and set file and permissions.
A demonstration of usefulness would be to add a check to Boost's inspect tool that reports files of known-to-be-not-executable types with the execute permission set.
Change History (2)
comment:1 by , 12 years ago
comment:2 by , 11 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
The permissions() function has been added. The functionality is limited, but creating a full permissions and access control abstraction that would cover both Windows and POSIX systems just isn't happening.
If anyone can come up with such an abstraction, with implementation and test cases, I'd be very happy to add it to Boost.Filesystem.
Thanks,
--Beman
Replying to bemandawes:
This looks like something that would be interesting to work on.
Do you already have a design in place or at least an interface you want to expose for this functionality? I find myself often needing this information as well quite often in applications. It should be noted that it should be able to work on directories.