mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 10:07:44 +00:00
LibCore: Add File::open_file_or_standard_stream()
This commit is contained in:
parent
b66ceafaba
commit
1c5f6003d7
2 changed files with 17 additions and 0 deletions
|
@ -185,6 +185,8 @@ public:
|
|||
static ErrorOr<NonnullOwnPtr<File>> adopt_fd(int fd, OpenMode);
|
||||
static bool exists(StringView filename);
|
||||
|
||||
static ErrorOr<NonnullOwnPtr<File>> open_file_or_standard_stream(StringView filename, OpenMode mode);
|
||||
|
||||
File(File&& other) { operator=(move(other)); }
|
||||
|
||||
File& operator=(File&& other)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue