mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-10 19:46:03 +00:00
LibCore+Userland: Remove File::ensure_parent_directories
We have a much safer and more powerful alternative now, so let's move the few users over.
This commit is contained in:
parent
0fd09b2381
commit
5319e3a03f
Notes:
sideshowbarker
2024-07-17 20:58:35 +09:00
Author: https://github.com/kleinesfilmroellchen
Commit: 5319e3a03f
Pull-request: https://github.com/SerenityOS/serenity/pull/13603
Issue: https://github.com/SerenityOS/serenity/issues/13555
Reviewed-by: https://github.com/BertalanD
Reviewed-by: https://github.com/alichraghi ✅
Reviewed-by: https://github.com/awesomekling
7 changed files with 14 additions and 48 deletions
|
@ -7,6 +7,7 @@
|
|||
#include <AK/LexicalPath.h>
|
||||
#include <AK/Vector.h>
|
||||
#include <LibCore/ArgsParser.h>
|
||||
#include <LibCore/Directory.h>
|
||||
#include <LibCore/File.h>
|
||||
#include <LibCore/FilePermissionsMask.h>
|
||||
#include <LibCore/System.h>
|
||||
|
@ -35,7 +36,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
|
||||
if (create_leading_dest_components) {
|
||||
String destination_dir_absolute = Core::File::absolute_path(destination_dir);
|
||||
Core::File::ensure_directories(destination_dir_absolute);
|
||||
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