fix: include hidden files when copying instances

fixes instance ccopy on linux .-.

Signed-off-by: flow <flowlnlnln@gmail.com>
This commit is contained in:
flow 2022-10-15 09:20:31 -03:00
parent 924c1634d3
commit 8bc529be3d
No known key found for this signature in database
GPG Key ID: 8D0F221F0A59F469

View File

@ -170,7 +170,7 @@ bool copy::operator()(const QString& offset)
// blacklisted paths, so we iterate over the source directory, and if there's no blacklist
// match, we copy the file.
QDir src_dir(src);
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()) {
auto src_path = source_it.next();