Changeset View
Changeset View
Standalone View
Standalone View
src/core/copyjob.cpp
Show First 20 Lines • Show All 643 Lines • ▼ Show 20 Line(s) | 638 | { | |||
---|---|---|---|---|---|
644 | emit q->warning(job, subJob->errorString(), QString()); | 644 | emit q->warning(job, subJob->errorString(), QString()); | ||
645 | skip(url, true); | 645 | skip(url, true); | ||
646 | } | 646 | } | ||
647 | 647 | | |||
648 | void CopyJobPrivate::addCopyInfoFromUDSEntry(const UDSEntry &entry, const QUrl &srcUrl, bool srcIsDir, const QUrl ¤tDest) | 648 | void CopyJobPrivate::addCopyInfoFromUDSEntry(const UDSEntry &entry, const QUrl &srcUrl, bool srcIsDir, const QUrl ¤tDest) | ||
649 | { | 649 | { | ||
650 | struct CopyInfo info; | 650 | struct CopyInfo info; | ||
651 | info.permissions = entry.numberValue(KIO::UDSEntry::UDS_ACCESS, -1); | 651 | info.permissions = entry.numberValue(KIO::UDSEntry::UDS_ACCESS, -1); | ||
652 | info.mtime = QDateTime::fromMSecsSinceEpoch(1000 * entry.numberValue(KIO::UDSEntry::UDS_MODIFICATION_TIME, -1)); | 652 | info.mtime = QDateTime::fromMSecsSinceEpoch(1000 * entry.numberValue(KIO::UDSEntry::UDS_MODIFICATION_TIME, -1), Qt::UTC); | ||
653 | info.ctime = QDateTime::fromMSecsSinceEpoch(1000 * entry.numberValue(KIO::UDSEntry::UDS_CREATION_TIME, -1)); | 653 | info.ctime = QDateTime::fromMSecsSinceEpoch(1000 * entry.numberValue(KIO::UDSEntry::UDS_CREATION_TIME, -1), Qt::UTC); | ||
654 | info.size = static_cast<KIO::filesize_t>(entry.numberValue(KIO::UDSEntry::UDS_SIZE, -1)); | 654 | info.size = static_cast<KIO::filesize_t>(entry.numberValue(KIO::UDSEntry::UDS_SIZE, -1)); | ||
655 | 655 | | |||
656 | if (info.size != (KIO::filesize_t) - 1) { | 656 | if (info.size != (KIO::filesize_t) - 1) { | ||
657 | m_totalSize += info.size; | 657 | m_totalSize += info.size; | ||
658 | } | 658 | } | ||
659 | 659 | | |||
660 | // recursive listing, displayName can be a/b/c/d | 660 | // recursive listing, displayName can be a/b/c/d | ||
661 | const QString fileName = entry.stringValue(KIO::UDSEntry::UDS_NAME); | 661 | const QString fileName = entry.stringValue(KIO::UDSEntry::UDS_NAME); | ||
▲ Show 20 Lines • Show All 1617 Lines • Show Last 20 Lines |