mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:14:58 +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
|
@ -12,6 +12,7 @@
|
|||
#include <AK/LexicalPath.h>
|
||||
#include <LibCore/ArgsParser.h>
|
||||
#include <LibCore/DirIterator.h>
|
||||
#include <LibCore/File.h>
|
||||
#include <LibCore/Stream.h>
|
||||
#include <LibCore/System.h>
|
||||
#include <LibMain/Main.h>
|
||||
|
@ -48,7 +49,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
while (usb_devices.has_next()) {
|
||||
auto full_path = LexicalPath(usb_devices.next_full_path());
|
||||
|
||||
auto proc_usb_device = Core::Stream::File::open(full_path.string(), Core::Stream::OpenMode::Read);
|
||||
auto proc_usb_device = Core::File::open(full_path.string(), Core::File::OpenMode::Read);
|
||||
if (proc_usb_device.is_error()) {
|
||||
warnln("Failed to open {}: {}", full_path.string(), proc_usb_device.error());
|
||||
continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue