From 01dc718f079bb9c5c56e408f235df52852270d11 Mon Sep 17 00:00:00 2001 From: Daniel Bertalan Date: Fri, 25 Feb 2022 20:52:14 +0100 Subject: LibCore: Do not skip dotfiles when copying directories recursively --- Userland/Libraries/LibCore/File.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Userland/Libraries/LibCore/File.cpp') diff --git a/Userland/Libraries/LibCore/File.cpp b/Userland/Libraries/LibCore/File.cpp index 9104350231..d03837d9f5 100644 --- a/Userland/Libraries/LibCore/File.cpp +++ b/Userland/Libraries/LibCore/File.cpp @@ -473,7 +473,7 @@ ErrorOr File::copy_directory(String const& dst_path, Stri if (!dst_rp.is_empty() && dst_rp.starts_with(src_rp)) return CopyError { errno, false }; - DirIterator di(src_path, DirIterator::SkipDots); + DirIterator di(src_path, DirIterator::SkipParentAndBaseDir); if (di.has_error()) return CopyError { errno, false }; -- cgit v1.2.3