mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-02 13:01:27 +12:00
Implement fs::isfile (#11447)
This commit is contained in:
parent
bb65e6797f
commit
781b2b4548
4 changed files with 11 additions and 3 deletions
|
@ -32,6 +32,7 @@ namespace fs
|
|||
excl,
|
||||
lock,
|
||||
unread,
|
||||
isfile,
|
||||
|
||||
__bitset_enum_max
|
||||
};
|
||||
|
@ -44,6 +45,7 @@ namespace fs
|
|||
constexpr auto excl = +open_mode::excl; // Failure if the file already exists (used with `create`)
|
||||
constexpr auto lock = +open_mode::lock; // Prevent opening the file more than once
|
||||
constexpr auto unread = +open_mode::unread; // Aggressively prevent reading the opened file (do not use)
|
||||
constexpr auto isfile = +open_mode::isfile; // Ensure valid fs::file handle is not of directory
|
||||
|
||||
constexpr auto write_new = write + create + excl;
|
||||
constexpr auto rewrite = write + create + trunc;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue