mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:47:46 +00:00
LibCore: Move Stream-based file into the Core
namespace
This commit is contained in:
parent
a96339b72b
commit
606a3982f3
218 changed files with 748 additions and 643 deletions
|
@ -7,6 +7,7 @@
|
|||
#include <AK/Vector.h>
|
||||
#include <LibCompress/Gzip.h>
|
||||
#include <LibCore/ArgsParser.h>
|
||||
#include <LibCore/File.h>
|
||||
#include <LibCore/MappedFile.h>
|
||||
#include <LibCore/MimeData.h>
|
||||
#include <LibCore/Stream.h>
|
||||
|
@ -158,7 +159,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
auto buffer = TRY(ByteBuffer::create_uninitialized(0x9006));
|
||||
|
||||
for (auto const& path : paths) {
|
||||
auto file_or_error = Core::Stream::File::open(path, Core::Stream::OpenMode::Read);
|
||||
auto file_or_error = Core::File::open(path, Core::File::OpenMode::Read);
|
||||
if (file_or_error.is_error()) {
|
||||
perror(path.characters());
|
||||
all_ok = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue