Changeset View
Changeset View
Standalone View
Standalone View
src/core/copyjob.cpp
Show First 20 Lines • Show All 360 Lines • ▼ Show 20 Line(s) | 360 | q->connect(m_reportTimer, &QTimer::timeout, q, [this]() { | |||
---|---|---|---|---|---|
361 | slotReport(); | 361 | slotReport(); | ||
362 | }); | 362 | }); | ||
363 | m_reportTimer->start(REPORT_TIMEOUT); | 363 | m_reportTimer->start(REPORT_TIMEOUT); | ||
364 | 364 | | |||
365 | // Stat the dest | 365 | // Stat the dest | ||
366 | state = STATE_STATING; | 366 | state = STATE_STATING; | ||
367 | const QUrl dest = m_asMethod ? m_dest.adjusted(QUrl::RemoveFilename) : m_dest; | 367 | const QUrl dest = m_asMethod ? m_dest.adjusted(QUrl::RemoveFilename) : m_dest; | ||
368 | // We need isDir() and UDS_LOCAL_PATH (for slaves who set it). Let's assume the latter is part of StatBasic too. | 368 | // We need isDir() and UDS_LOCAL_PATH (for slaves who set it). Let's assume the latter is part of StatBasic too. | ||
369 | KIO::Job *job = KIO::statDetails(dest, StatJob::DestinationSide, KIO::StatBasic, KIO::HideProgressInfo); | 369 | KIO::Job *job = KIO::statDetails(dest, StatJob::DestinationSide, KIO::StatBasic | KIO::StatResolveSymlink, KIO::HideProgressInfo); | ||
370 | qCDebug(KIO_COPYJOB_DEBUG) << "CopyJob: stating the dest" << dest; | 370 | qCDebug(KIO_COPYJOB_DEBUG) << "CopyJob: stating the dest" << dest; | ||
371 | q->addSubjob(job); | 371 | q->addSubjob(job); | ||
372 | } | 372 | } | ||
373 | 373 | | |||
374 | // For unit test purposes | 374 | // For unit test purposes | ||
375 | KIOCORE_EXPORT bool kio_resolve_local_urls = true; | 375 | KIOCORE_EXPORT bool kio_resolve_local_urls = true; | ||
376 | 376 | | |||
377 | void CopyJobPrivate::slotResultStating(KJob *job) | 377 | void CopyJobPrivate::slotResultStating(KJob *job) | ||
▲ Show 20 Lines • Show All 1959 Lines • Show Last 20 Lines |