FileSystemPath.h 482 B

123456789101112131415161718192021222324252627
  1. #pragma once
  2. #include "AKString.h"
  3. namespace AK {
  4. class FileSystemPath {
  5. public:
  6. FileSystemPath() { }
  7. explicit FileSystemPath(const String&);
  8. bool is_valid() const { return m_is_valid; }
  9. String string() const { return m_string; }
  10. String basename() const { return m_basename; }
  11. private:
  12. bool canonicalize(bool resolve_symbolic_links = false);
  13. String m_string;
  14. String m_basename;
  15. bool m_is_valid { false };
  16. };
  17. };
  18. using AK::FileSystemPath;