mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-13 01:59:14 +03:00
28 lines
482 B
C++
28 lines
482 B
C++
#pragma once
|
|
|
|
#include "AKString.h"
|
|
|
|
namespace AK {
|
|
|
|
class FileSystemPath {
|
|
public:
|
|
FileSystemPath() { }
|
|
explicit FileSystemPath(const String&);
|
|
|
|
bool is_valid() const { return m_is_valid; }
|
|
String string() const { return m_string; }
|
|
|
|
String basename() const { return m_basename; }
|
|
|
|
private:
|
|
bool canonicalize(bool resolve_symbolic_links = false);
|
|
|
|
String m_string;
|
|
String m_basename;
|
|
bool m_is_valid { false };
|
|
};
|
|
|
|
};
|
|
|
|
using AK::FileSystemPath;
|