mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 08:44:58 +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
|
@ -76,7 +76,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
|
||||
if (target_directory.is_empty()) {
|
||||
if (!file_template.is_empty()) {
|
||||
auto resolved_path = LexicalPath(TRY(FileSystem::absolute_path(file_template)).to_byte_string());
|
||||
auto resolved_path = LexicalPath(TRY(FileSystem::absolute_path(file_template)));
|
||||
final_target_directory = TRY(String::from_utf8(resolved_path.dirname()));
|
||||
final_file_template = TRY(String::from_utf8(resolved_path.basename()));
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue