mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 23:37:36 +00:00
readlink: Prefer FileSystem::readlink over DeprecatedFile
This commit is contained in:
parent
b7558a5ce4
commit
317cdc32ad
2 changed files with 3 additions and 2 deletions
|
@ -5,8 +5,8 @@
|
|||
*/
|
||||
|
||||
#include <LibCore/ArgsParser.h>
|
||||
#include <LibCore/DeprecatedFile.h>
|
||||
#include <LibCore/System.h>
|
||||
#include <LibFileSystem/FileSystem.h>
|
||||
#include <LibMain/Main.h>
|
||||
|
||||
ErrorOr<int> serenity_main(Main::Arguments arguments)
|
||||
|
@ -22,7 +22,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
args_parser.parse(arguments);
|
||||
|
||||
for (auto path : paths) {
|
||||
auto destination = TRY(Core::DeprecatedFile::read_link(path));
|
||||
auto destination = TRY(FileSystem::read_link(path));
|
||||
out("{}", destination);
|
||||
if (!no_newline)
|
||||
outln();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue