diff options
author | Sergey Bugaev <bugaevc@serenityos.org> | 2020-05-26 14:52:44 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-05-26 14:35:10 +0200 |
commit | 602c3fdb3a0975418886e32cf9cc53b45d2f8964 (patch) | |
tree | 079b3ebdaf7db517625496e35acf1158adacad77 /Userland/basename.cpp | |
parent | f746bbda174d914d5de9379084a6fb2095c58d68 (diff) | |
download | serenity-602c3fdb3a0975418886e32cf9cc53b45d2f8964.zip |
AK: Rename FileSystemPath -> LexicalPath
And move canonicalized_path() to a static method on LexicalPath.
This is to make it clear that FileSystemPath/canonicalized_path() only
perform *lexical* canonicalization.
Diffstat (limited to 'Userland/basename.cpp')
-rw-r--r-- | Userland/basename.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/basename.cpp b/Userland/basename.cpp index 7efbe2efe0..2d211340f0 100644 --- a/Userland/basename.cpp +++ b/Userland/basename.cpp @@ -24,7 +24,7 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include <AK/FileSystemPath.h> +#include <AK/LexicalPath.h> #include <stdio.h> int main(int argc, char** argv) @@ -38,6 +38,6 @@ int main(int argc, char** argv) printf("usage: basename <path>\n"); return 1; } - printf("%s\n", FileSystemPath(argv[1]).basename().characters()); + printf("%s\n", LexicalPath(argv[1]).basename().characters()); return 0; } |