mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-27 12:46:06 +00:00
LibCore: Do not skip dotfiles when copying directories recursively
This commit is contained in:
parent
a285e651f1
commit
01dc718f07
Notes:
sideshowbarker
2024-07-17 17:42:35 +09:00
Author: https://github.com/BertalanD
Commit: 01dc718f07
Pull-request: https://github.com/SerenityOS/serenity/pull/12886
Reviewed-by: https://github.com/ADKaster
Reviewed-by: https://github.com/linusg ✅
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))
|
if (!dst_rp.is_empty() && dst_rp.starts_with(src_rp))
|
||||||
return CopyError { errno, false };
|
return CopyError { errno, false };
|
||||||
|
|
||||||
DirIterator di(src_path, DirIterator::SkipDots);
|
DirIterator di(src_path, DirIterator::SkipParentAndBaseDir);
|
||||||
if (di.has_error())
|
if (di.has_error())
|
||||||
return CopyError { errno, false };
|
return CopyError { errno, false };
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue