[#BloombergLP-bdls-FilePermissions]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdls.adoc[bdls]::FilePermissions
:relfileprefix: ../../
:mrdocs:

This `struct` provides a namespace for file&hyphen;system permission bits&period;

== Synopsis

Declared in `&lt;bdls&lowbar;filepermissions&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
struct FilePermissions;
----

== Description

This `struct` provides a namespace for a `std&colon;&colon;filesystem&colon;&colon;perms`&hyphen;style enumeration of file&hyphen;system permission bits, and a pair of predicates for validating an `int` bit mask against that enumeration&period;

== Enums

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdls/FilePermissions/Enum.adoc[`Enum`] 
| Enumerated file&hyphen;system permission bits&period;
|===


== Static Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdls/FilePermissions/isValid.adoc[`isValid`] 
| Return `true` if `permissions` uses only bits defined in `Enum`&period;
| xref:BloombergLP/bdls/FilePermissions/isValidBaseBits.adoc[`isValidBaseBits`] 
| Return `true` if `permissions` uses only the base nine rwx bits&period;
| xref:BloombergLP/bdls/FilePermissions/print.adoc[`print`] 
| Write the octal representation of `value` to the specified `stream`&period;
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
