1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 03:47:35 +00:00

LibCore: Add Core::Stream::File::exists()

This commit is contained in:
Ariel Don 2022-05-15 10:36:19 -05:00 committed by Andreas Kling
parent 8a854ba309
commit 244357472a
2 changed files with 6 additions and 0 deletions

View file

@ -179,6 +179,7 @@ class File final : public SeekableStream {
public:
static ErrorOr<NonnullOwnPtr<File>> open(StringView filename, OpenMode, mode_t = 0644);
static ErrorOr<NonnullOwnPtr<File>> adopt_fd(int fd, OpenMode);
static bool exists(StringView filename);
File(File&& other) { operator=(move(other)); }