diff options
author | Cameron Youell <cameronyouell@gmail.com> | 2023-03-22 02:35:30 +1100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-03-21 19:03:21 +0000 |
commit | 1d24f394c61d8e2af216c95303014d0554165f72 (patch) | |
tree | e577780754109c9b38a81cfc815d35f19c68eb9d /Userland/Utilities/tar.cpp | |
parent | edab0cbf41d80e805fe93ee0c4cc5021a1e599c1 (diff) | |
download | serenity-1d24f394c61d8e2af216c95303014d0554165f72.zip |
Everywhere: Use `LibFileSystem` where trivial
Diffstat (limited to 'Userland/Utilities/tar.cpp')
-rw-r--r-- | Userland/Utilities/tar.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Userland/Utilities/tar.cpp b/Userland/Utilities/tar.cpp index 44069aa925..58124933e8 100644 --- a/Userland/Utilities/tar.cpp +++ b/Userland/Utilities/tar.cpp @@ -17,6 +17,7 @@ #include <LibCore/DirIterator.h> #include <LibCore/Directory.h> #include <LibCore/System.h> +#include <LibFileSystem/FileSystem.h> #include <LibMain/Main.h> #include <fcntl.h> #include <stdio.h> @@ -278,9 +279,9 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) Core::DirIterator it(path, Core::DirIterator::Flags::SkipParentAndBaseDir); while (it.has_next()) { auto child_path = it.next_full_path(); - if (!dereference && Core::DeprecatedFile::is_link(child_path)) { + if (!dereference && FileSystem::is_link(child_path)) { TRY(add_link(child_path)); - } else if (!Core::DeprecatedFile::is_directory(child_path)) { + } else if (!FileSystem::is_directory(child_path)) { TRY(add_file(child_path)); } else { TRY(handle_directory(child_path, handle_directory)); @@ -291,7 +292,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) }; for (auto const& path : paths) { - if (Core::DeprecatedFile::is_directory(path)) { + if (FileSystem::is_directory(path)) { TRY(add_directory(path, add_directory)); } else { TRY(add_file(path)); |