mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 08:08:43 +00:00
LibCore: Add SkipParentAndBaseDir flag in DirIterator
Sometimes we may want to iterate over dotfiles but not include the parent or base directory
This commit is contained in:
parent
3879d75219
commit
6764b77788
Notes:
sideshowbarker
2024-07-19 09:19:17 +09:00
Author: https://github.com/shannonbooth
Commit: 6764b77788
Pull-request: https://github.com/SerenityOS/serenity/pull/1222
2 changed files with 4 additions and 0 deletions
|
@ -36,6 +36,7 @@ public:
|
|||
enum Flags {
|
||||
NoFlags = 0x0,
|
||||
SkipDots = 0x1,
|
||||
SkipParentAndBaseDir = 0x2,
|
||||
};
|
||||
|
||||
DirIterator(const StringView& path, Flags = Flags::NoFlags);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue