diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2023-03-02 16:41:48 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-03-05 20:23:42 +0100 |
commit | a4667fdc9bef4f56faf4e0452240997b541e7aec (patch) | |
tree | 2c39d47d6c02718c2e8f7689fa3d387c3c5d6bd9 | |
parent | 7864898f52f52f4db82f06747ac817247b850b2d (diff) | |
download | serenity-a4667fdc9bef4f56faf4e0452240997b541e7aec.zip |
LibCore: Expose Directory file descriptor
-rw-r--r-- | Userland/Libraries/LibCore/Directory.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibCore/Directory.h b/Userland/Libraries/LibCore/Directory.h index 4cb72c735e..a8d2a18ab6 100644 --- a/Userland/Libraries/LibCore/Directory.h +++ b/Userland/Libraries/LibCore/Directory.h @@ -39,6 +39,7 @@ public: ErrorOr<NonnullOwnPtr<File>> open(StringView filename, File::OpenMode mode) const; ErrorOr<struct stat> stat() const; + int fd() const { return m_directory_fd; } ErrorOr<DirIterator> create_iterator() const; LexicalPath const& path() const { return m_path; } |