fix: include hidden files when copying instances

fixes instance ccopy on linux .-.

Signed-off-by: flow <flowlnlnln@gmail.com>
Signed-off-by: Lenny McLennington <lenny@sneed.church>
This commit is contained in:
flow 2022-10-15 09:20:31 -03:00 committed by Lenny McLennington
parent 403f8a7d96
commit 3db09c5466
No known key found for this signature in database
GPG Key ID: F0467078ECA45FCB

View File

@ -203,7 +203,7 @@ bool copy::operator()(const QString& offset)
// blacklisted paths, so we iterate over the source directory, and if there's no blacklist // blacklisted paths, so we iterate over the source directory, and if there's no blacklist
// match, we copy the file. // match, we copy the file.
if (QDir src_dir(src); src_dir.exists()) { if (QDir src_dir(src); src_dir.exists()) {
QDirIterator source_it(src, QDir::Filter::Files, QDirIterator::Subdirectories); QDirIterator source_it(src, QDir::Filter::Files | QDir::Filter::Hidden, QDirIterator::Subdirectories);
while (source_it.hasNext()) { while (source_it.hasNext()) {
auto src_path = source_it.next(); auto src_path = source_it.next();