summaryrefslogtreecommitdiff
path: root/AK/FileSystemPath.h
AgeCommit message (Collapse)Author
2020-04-28AK: Add FileSystemPath::is_absolute()Linus Groh
2020-02-14AK: Add a forward declaration headerAndreas Kling
You can now #include <AK/Forward.h> to get most of the AK types as forward declarations. Header dependency explosion is one of the main contributors to compile times at the moment, so this is a step towards smaller include graphs.
2020-01-18Meta: Add license header to source filesAndreas Kling
As suggested by Joshua, this commit adds the 2-clause BSD license as a comment block to the top of every source file. For the first pass, I've just added myself for simplicity. I encourage everyone to add themselves as copyright holders of any file they've added or modified in some significant way. If I've added myself in error somewhere, feel free to replace it with the appropriate copyright holder instead. Going forward, all new source files should include a license header.
2020-01-07AK: Add dirname() to FileSystemPathConrad Pankoff
2019-09-06AK: Rename <AK/AKString.h> to <AK/String.h>Andreas Kling
This was a workaround to be able to build on case-insensitive file systems where it might get confused about <string.h> vs <String.h>. Let's just not support building that way, so String.h can have an objectively nicer name. :^)
2019-07-29TextEditor: Include extension during SaveAsrhin123
When we save-as in the text editor we now auto-populate GFilePicker /w the current name & extension.
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.