mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-04 17:33:04 +00:00
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.
This commit is contained in:
parent
f746bbda17
commit
602c3fdb3a
Notes:
sideshowbarker
2024-07-19 06:06:58 +09:00
Author: https://github.com/bugaevc
Commit: 602c3fdb3a
Pull-request: https://github.com/SerenityOS/serenity/pull/2394
Reviewed-by: https://github.com/awesomekling ✅
44 changed files with 174 additions and 181 deletions
|
@ -242,7 +242,7 @@ int main(int argc, char** argv)
|
|||
|
||||
String message;
|
||||
if (files.size() == 1) {
|
||||
message = String::format("Really remove %s from the project?", FileSystemPath(files[0]).basename().characters());
|
||||
message = String::format("Really remove %s from the project?", LexicalPath(files[0]).basename().characters());
|
||||
} else {
|
||||
message = String::format("Really remove %d files from the project?", files.size());
|
||||
}
|
||||
|
@ -711,8 +711,8 @@ void run(TerminalWrapper& wrapper)
|
|||
|
||||
void open_project(String filename)
|
||||
{
|
||||
FileSystemPath path(filename);
|
||||
if (chdir(path.dirname().characters()) < 0) {
|
||||
LexicalPath lexical_path(filename);
|
||||
if (chdir(lexical_path.dirname().characters()) < 0) {
|
||||
perror("chdir");
|
||||
exit(1);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue