1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-30 02:47:35 +00:00

FileManager: Make the tree view follow the directory view navigations.

This commit is contained in:
Andreas Kling 2019-03-30 03:27:25 +01:00
parent f10e0d0546
commit 2c6a597d77
10 changed files with 72 additions and 3 deletions

View file

@ -40,6 +40,7 @@ bool FileSystemPath::canonicalize(bool resolve_symbolic_links)
builder.append('/');
builder.append(cpart);
}
m_parts = move(canonical_parts);
m_string = builder.to_string();
return true;
}

View file

@ -14,9 +14,12 @@ public:
String basename() const { return m_basename; }
const Vector<String>& parts() const { return m_parts; }
private:
bool canonicalize(bool resolve_symbolic_links = false);
Vector<String> m_parts;
String m_string;
String m_basename;
bool m_is_valid { false };