mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 08:08:43 +00:00
LibCore: Add File::is_directory() helpers
This commit is contained in:
parent
80b1af2352
commit
67ccdbe384
Notes:
sideshowbarker
2024-07-19 09:31:04 +09:00
Author: https://github.com/awesomekling
Commit: 67ccdbe384
2 changed files with 20 additions and 0 deletions
|
@ -39,6 +39,9 @@ public:
|
|||
String filename() const { return m_filename; }
|
||||
void set_filename(const StringView& filename) { m_filename = filename; }
|
||||
|
||||
bool is_directory() const;
|
||||
static bool is_directory(const String& filename);
|
||||
|
||||
virtual bool open(IODevice::OpenMode) override;
|
||||
|
||||
enum class ShouldCloseFileDescription {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue