summaryrefslogtreecommitdiff
path: root/Userland/Utilities/zip.cpp
diff options
context:
space:
mode:
authorTim Schumacher <timschumi@gmx.de>2023-02-09 03:02:46 +0100
committerLinus Groh <mail@linusgroh.de>2023-02-13 00:50:07 +0000
commit606a3982f34d777f121fcc4aa964141199676c20 (patch)
tree836fef41d11f1b77f4dac7d699e5c9f720ee4ff1 /Userland/Utilities/zip.cpp
parenta96339b72b3b417ffaa4fbb4e7575149f749acaa (diff)
downloadserenity-606a3982f34d777f121fcc4aa964141199676c20.zip
LibCore: Move Stream-based file into the `Core` namespace
Diffstat (limited to 'Userland/Utilities/zip.cpp')
-rw-r--r--Userland/Utilities/zip.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/Userland/Utilities/zip.cpp b/Userland/Utilities/zip.cpp
index 7a9b88deff..12679b67e0 100644
--- a/Userland/Utilities/zip.cpp
+++ b/Userland/Utilities/zip.cpp
@@ -12,6 +12,7 @@
#include <LibCore/DateTime.h>
#include <LibCore/DeprecatedFile.h>
#include <LibCore/DirIterator.h>
+#include <LibCore/File.h>
#include <LibCore/Stream.h>
#include <LibCore/System.h>
#include <LibCrypto/Checksum/CRC32.h>
@@ -50,12 +51,12 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
}
outln("Archive: {}", zip_file_path);
- auto file_stream = TRY(Core::Stream::File::open(zip_file_path, Core::Stream::OpenMode::Write));
+ auto file_stream = TRY(Core::File::open(zip_file_path, Core::File::OpenMode::Write));
Archive::ZipOutputStream zip_stream(move(file_stream));
auto add_file = [&](DeprecatedString path) -> ErrorOr<void> {
auto canonicalized_path = LexicalPath::canonicalized_path(path);
- auto file = TRY(Core::Stream::File::open(path, Core::Stream::OpenMode::Read));
+ auto file = TRY(Core::File::open(path, Core::File::OpenMode::Read));
auto file_buffer = TRY(file->read_until_eof());
Archive::ZipMember member {};
member.name = TRY(String::from_deprecated_string(canonicalized_path));