1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:37:34 +00:00

LibCore: Add new flag for DirIterator to not use fstatat

This will be useful in the upcoming listdir utility (in the next commit)
to get the file type which is obtained in the get_dir_entries syscall,
so it's not changed later by the fstatat syscall.

This will ensure that we get the raw file type value as it's represented
by directory entries from the get_dir_entries syscall.
This commit is contained in:
Liav A 2024-01-06 11:38:43 +02:00 committed by Andrew Kaster
parent d568b09632
commit 603516e8c0
2 changed files with 4 additions and 1 deletions

View file

@ -20,6 +20,7 @@ public:
NoFlags = 0x0,
SkipDots = 0x1,
SkipParentAndBaseDir = 0x2,
NoStat = 0x4,
};
explicit DirIterator(ByteString path, Flags = Flags::NoFlags);