Skip to content

Commit

Permalink
filefunc
Browse files Browse the repository at this point in the history
  • Loading branch information
Dipper209 committed Jul 10, 2024
1 parent 20d0cfc commit 2b7dc1d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions filefunc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
//用多线程遍历本地文件夹
void Filefunc::readDirectory(const QString &path)
{
// 清空之前的文件列表
fileInfoList.clear();

// 递归读取文件夹和子文件夹
recursiveRead(path);
}
Expand All @@ -22,10 +19,15 @@ void Filefunc::recursiveRead(const QString &path)
recursiveRead(info.filePath());
} else {
// 如果是文件,添加到文件信息列表
fileInfoList.append(info);
addSynctask(info.absoluteFilePath());
qDebug()<<info.fileName();
}
}
}

void Filefunc::addSynctask(const QString &path)
{

}


0 comments on commit 2b7dc1d

Please sign in to comment.