From 149ac3e67468dc60f608dd44a11c92bd1cf150a4 Mon Sep 17 00:00:00 2001 From: Darshanx256 Date: Wed, 8 Apr 2026 22:39:39 +0530 Subject: [PATCH] LibFileSystem: Preserve copy flags when recursing into directories --- Libraries/LibFileSystem/FileSystem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/LibFileSystem/FileSystem.cpp b/Libraries/LibFileSystem/FileSystem.cpp index aacfc61b341..4ef818b064a 100644 --- a/Libraries/LibFileSystem/FileSystem.cpp +++ b/Libraries/LibFileSystem/FileSystem.cpp @@ -279,7 +279,7 @@ ErrorOr copy_file_or_directory(StringView destination_path, StringView sou return Error::from_errno(EISDIR); } - return copy_directory(final_destination_path, source_path, source_stat); + return copy_directory(final_destination_path, source_path, source_stat, link_mode, preserve_mode); } if (link_mode == LinkMode::Allowed)