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)

in reply to:  description comment:1 by Dean Michael Berris, 12 years ago

Replying to bemandawes:

Add ability to retrieve and set file and permissions.

This looks like something that would be interesting to work on.

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.

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.

comment:2 by Beman Dawes, 11 years ago

Resolution: fixed
Status: newclosed

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

Note: See TracTickets for help on using tickets.