From 9f820fa2c587d77c7fddda0d22b1fd165db99ea4 Mon Sep 17 00:00:00 2001 From: Ben Wiederhake Date: Sat, 13 May 2023 13:36:54 +0200 Subject: [PATCH] HackStudio: Prefer FileSystem::copy_file_or_directory --- Userland/DevTools/HackStudio/ProjectTemplate.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Userland/DevTools/HackStudio/ProjectTemplate.cpp b/Userland/DevTools/HackStudio/ProjectTemplate.cpp index 9f9b0892bd..9ba02a85f4 100644 --- a/Userland/DevTools/HackStudio/ProjectTemplate.cpp +++ b/Userland/DevTools/HackStudio/ProjectTemplate.cpp @@ -9,7 +9,6 @@ #include #include #include -#include #include #include #include @@ -73,7 +72,7 @@ Result ProjectTemplate::create_project(DeprecatedString // Verify that the template content directory exists. If it does, copy it's contents. // Otherwise, create an empty directory at the project path. if (FileSystem::is_directory(content_path())) { - auto result = Core::DeprecatedFile::copy_file_or_directory(path, content_path()); + auto result = FileSystem::copy_file_or_directory(path, content_path()); dbgln("Copying {} -> {}", content_path(), path); if (result.is_error()) return DeprecatedString::formatted("Failed to copy template contents. Error code: {}", static_cast(result.error()));