mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 09:37:44 +00:00
LibCore: Do not skip dotfiles when copying directories recursively
This commit is contained in:
parent
a285e651f1
commit
01dc718f07
1 changed files with 1 additions and 1 deletions
|
@ -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 };
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue