mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 00:35:08 +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
|
@ -10,11 +10,11 @@
|
|||
#include <LibSQL/SQLClient.h>
|
||||
|
||||
#if !defined(AK_OS_SERENITY)
|
||||
# include <LibCore/DeprecatedFile.h>
|
||||
# include <LibCore/Directory.h>
|
||||
# include <LibCore/SocketAddress.h>
|
||||
# include <LibCore/StandardPaths.h>
|
||||
# include <LibCore/System.h>
|
||||
# include <LibFileSystem/FileSystem.h>
|
||||
#endif
|
||||
|
||||
namespace SQL {
|
||||
|
@ -24,7 +24,7 @@ namespace SQL {
|
|||
// This is heavily based on how SystemServer's Service creates its socket.
|
||||
static ErrorOr<int> create_database_socket(DeprecatedString const& socket_path)
|
||||
{
|
||||
if (Core::DeprecatedFile::exists(socket_path))
|
||||
if (FileSystem::exists(socket_path))
|
||||
TRY(Core::System::unlink(socket_path));
|
||||
|
||||
# ifdef SOCK_NONBLOCK
|
||||
|
@ -102,7 +102,7 @@ static ErrorOr<void> launch_server(DeprecatedString const& socket_path, Deprecat
|
|||
|
||||
static ErrorOr<bool> should_launch_server(DeprecatedString const& pid_path)
|
||||
{
|
||||
if (!Core::DeprecatedFile::exists(pid_path))
|
||||
if (!FileSystem::exists(pid_path))
|
||||
return true;
|
||||
|
||||
Optional<pid_t> pid;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue