mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 08:34:57 +00:00
LibFileSystem+Userland: Return ByteString from absolute_path()
This commit is contained in:
parent
fb644d08ac
commit
cdf17efb9a
7 changed files with 12 additions and 14 deletions
|
@ -35,8 +35,8 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
ByteString destination_dir = (sources.size() > 1 ? ByteString { destination } : LexicalPath::dirname(destination));
|
||||
|
||||
if (create_leading_dest_components) {
|
||||
String destination_dir_absolute = TRY(FileSystem::absolute_path(destination_dir));
|
||||
MUST(Core::Directory::create(destination_dir_absolute.to_byte_string(), Core::Directory::CreateDirectories::Yes));
|
||||
auto destination_dir_absolute = TRY(FileSystem::absolute_path(destination_dir));
|
||||
MUST(Core::Directory::create(destination_dir_absolute, Core::Directory::CreateDirectories::Yes));
|
||||
}
|
||||
|
||||
for (auto const& source : sources) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue