summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibCore/File.cpp
diff options
context:
space:
mode:
authorDaniel Bertalan <dani@danielbertalan.dev>2022-02-25 20:52:14 +0100
committerLinus Groh <mail@linusgroh.de>2022-03-08 23:30:47 +0100
commit01dc718f079bb9c5c56e408f235df52852270d11 (patch)
tree29f572352ab3539c9456f2707f3f1a24df0d5e20 /Userland/Libraries/LibCore/File.cpp
parenta285e651f1c709ac66fc9baefbbaedbf2a47aa4e (diff)
downloadserenity-01dc718f079bb9c5c56e408f235df52852270d11.zip
LibCore: Do not skip dotfiles when copying directories recursively
Diffstat (limited to 'Userland/Libraries/LibCore/File.cpp')
-rw-r--r--Userland/Libraries/LibCore/File.cpp2
1 files changed, 1 insertions, 1 deletions
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<void, File::CopyError> 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 };