mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:34:59 +00:00
Everywhere: Use LibFileSystem
where trivial
This commit is contained in:
parent
edab0cbf41
commit
1d24f394c6
115 changed files with 275 additions and 228 deletions
|
@ -19,6 +19,7 @@
|
|||
#include <LibCore/StandardPaths.h>
|
||||
#include <LibCore/System.h>
|
||||
#include <LibDesktop/Launcher.h>
|
||||
#include <LibFileSystem/FileSystem.h>
|
||||
#include <LibGUI/Application.h>
|
||||
#include <LibGUI/BoxLayout.h>
|
||||
#include <LibGUI/Icon.h>
|
||||
|
@ -131,7 +132,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
}
|
||||
|
||||
auto url_from_argument_string = [](DeprecatedString const& string) -> URL {
|
||||
if (Core::DeprecatedFile::exists(string)) {
|
||||
if (FileSystem::exists(string)) {
|
||||
return URL::create_with_file_scheme(Core::DeprecatedFile::real_path_for(string));
|
||||
}
|
||||
return Browser::url_from_user_input(string);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue