blob: d56625dcaf4e58e1f801072c2d94dc9aa402508b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#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;
|