summaryrefslogtreecommitdiff
path: root/AK/FileSystemPath.h
AgeCommit message (Collapse)Author
2019-07-15AK: Add a canonicalized_path() convenience function.Andreas Kling
This is the same as calling FileSystemPath(foo).string(). The majority of clients only care about canonicalizing a path, so let's have an easy way to express that.
2019-06-07Kernel: Tweak some String&& => const String&.Andreas Kling
String&& is just not very practical. Also return const String& when the returned string is a member variable. The call site is free to make a copy if he wants, but otherwise we can avoid the retain count churn.
2019-06-02Take StringView in more placesRobin Burchell
We should work towards a pattern where we take StringView as function arguments, and store String as member, to push the String construction to the last possible moment.
2019-05-28Add clang-format fileRobin Burchell
Also run it across the whole tree to get everything using the One True Style. We don't yet run this in an automated fashion as it's a little slow, but there is a snippet to do so in makeall.sh.
2019-05-27FileSystemPath: Add a has_extension() helper.Andreas Kling
This code: if (path.string().to_lowercase().ends_with(".foo")) Can now be written as: if (path.has_extension(".foo"))
2019-03-30FileManager: Make the tree view follow the directory view navigations.Andreas Kling
2018-12-04Import a simple text editor I started working on.Andreas Kling
2018-12-03Yet more coding style fixes.Andreas Kling
2018-11-18Fix mkdir with relative paths.Andreas Kling
2018-11-18Finally hook up the mkdir code to a syscall.Andreas Kling
Added a /bin/mkdir that makes directories. How very neat :^) There are various limitations because of missing functionality.
2018-10-28Add a simple FileSystemPath class that can canonicalize paths.Andreas Kling
Also a simple StringBuilder to help him out.