mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:37:35 +00:00
AK: Add FileSystemPath::is_absolute()
This commit is contained in:
parent
6fd7966d81
commit
cd81aa41f0
2 changed files with 7 additions and 5 deletions
|
@ -37,6 +37,7 @@ public:
|
|||
explicit FileSystemPath(const StringView&);
|
||||
|
||||
bool is_valid() const { return m_is_valid; }
|
||||
bool is_absolute() const { return m_is_absolute; }
|
||||
const String& string() const { return m_string; }
|
||||
|
||||
const String& dirname() const { return m_dirname; }
|
||||
|
@ -58,6 +59,7 @@ private:
|
|||
String m_title;
|
||||
String m_extension;
|
||||
bool m_is_valid { false };
|
||||
bool m_is_absolute { false };
|
||||
};
|
||||
|
||||
String canonicalized_path(const StringView&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue