ladybird/AK/FileSystemPath.h
Andreas Kling 88ad59bfb1 Add a simple FileSystemPath class that can canonicalize paths.
Also a simple StringBuilder to help him out.
2018-10-28 08:54:20 +01:00

24 lines
400 B
C++

#pragma once
#include "String.h"
namespace AK {
class FileSystemPath {
public:
FileSystemPath() { }
explicit FileSystemPath(const String&);
bool isValid() const { return m_isValid; }
String string() const { return m_string; }
private:
bool canonicalize(bool resolveSymbolicLinks = false);
String m_string;
bool m_isValid { false };
};
};
using AK::FileSystemPath;