mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-19 12:15:29 +08:00
Ref T554, fixed auto publish path
This commit is contained in:
@@ -285,7 +285,7 @@ namespace BlackMisc
|
|||||||
const QDateTime deadline = QDateTime::currentDateTimeUtc().addDays(-30);
|
const QDateTime deadline = QDateTime::currentDateTimeUtc().addDays(-30);
|
||||||
for (const QString &fn : fileList)
|
for (const QString &fn : fileList)
|
||||||
{
|
{
|
||||||
QFileInfo fi(fn);
|
const QFileInfo fi(fn.contains(dir.absolutePath()) ? fn : CFileUtils::appendFilePathsAndFixUnc(dir.absolutePath(), fn));
|
||||||
if (!fi.exists()) { continue; }
|
if (!fi.exists()) { continue; }
|
||||||
const QDateTime created = fi.created().toUTC();
|
const QDateTime created = fi.created().toUTC();
|
||||||
if (deadline < created)
|
if (deadline < created)
|
||||||
|
|||||||
Reference in New Issue
Block a user