mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 14:47:46 +00:00
LibCore: Expose Directory file descriptor
This commit is contained in:
parent
7864898f52
commit
a4667fdc9b
1 changed files with 1 additions and 0 deletions
|
@ -39,6 +39,7 @@ public:
|
||||||
|
|
||||||
ErrorOr<NonnullOwnPtr<File>> open(StringView filename, File::OpenMode mode) const;
|
ErrorOr<NonnullOwnPtr<File>> open(StringView filename, File::OpenMode mode) const;
|
||||||
ErrorOr<struct stat> stat() const;
|
ErrorOr<struct stat> stat() const;
|
||||||
|
int fd() const { return m_directory_fd; }
|
||||||
ErrorOr<DirIterator> create_iterator() const;
|
ErrorOr<DirIterator> create_iterator() const;
|
||||||
|
|
||||||
LexicalPath const& path() const { return m_path; }
|
LexicalPath const& path() const { return m_path; }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue