mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:37:34 +00:00
LibCore: Make copying permissions, ownership and timestamps combineable
This commit is contained in:
parent
a85b728768
commit
69e0b8dbb7
3 changed files with 19 additions and 6 deletions
|
@ -56,8 +56,10 @@ public:
|
|||
};
|
||||
|
||||
enum class PreserveMode {
|
||||
Nothing,
|
||||
PermissionsOwnershipTimestamps,
|
||||
Nothing = 0,
|
||||
Permissions = (1 << 0),
|
||||
Ownership = (1 << 1),
|
||||
Timestamps = (1 << 2),
|
||||
};
|
||||
|
||||
struct CopyError : public Error {
|
||||
|
@ -113,4 +115,6 @@ private:
|
|||
ShouldCloseFileDescriptor m_should_close_file_descriptor { ShouldCloseFileDescriptor::Yes };
|
||||
};
|
||||
|
||||
AK_ENUM_BITWISE_OPERATORS(File::PreserveMode);
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue