Changeset View
Changeset View
Standalone View
Standalone View
src/ioslaves/file/file_win.cpp
Show First 20 Lines • Show All 349 Lines • ▼ Show 20 Line(s) | |||||
350 | void FileProtocol::chown(const QUrl &url, const QString &, const QString &) | 350 | void FileProtocol::chown(const QUrl &url, const QString &, const QString &) | ||
351 | { | 351 | { | ||
352 | error(KIO::ERR_CANNOT_CHOWN, url.toLocalFile()); | 352 | error(KIO::ERR_CANNOT_CHOWN, url.toLocalFile()); | ||
353 | } | 353 | } | ||
354 | 354 | | |||
355 | void FileProtocol::stat(const QUrl &url) | 355 | void FileProtocol::stat(const QUrl &url) | ||
356 | { | 356 | { | ||
357 | if (!url.isLocalFile()) { | 357 | if (!url.isLocalFile()) { | ||
358 | QUrl redir(url); | 358 | redirect(url); | ||
359 | redir.setScheme(config()->readEntry("DefaultRemoteProtocol", "smb")); | | |||
360 | redirection(redir); | | |||
361 | // qDebug() << "redirecting to " << redir; | | |||
362 | finished(); | | |||
363 | return; | 359 | return; | ||
364 | } | 360 | } | ||
365 | 361 | | |||
366 | const QString sDetails = metaData(QLatin1String("details")); | 362 | const QString sDetails = metaData(QLatin1String("details")); | ||
367 | int details = sDetails.isEmpty() ? 2 : sDetails.toInt(); | 363 | int details = sDetails.isEmpty() ? 2 : sDetails.toInt(); | ||
368 | // qDebug() << "FileProtocol::stat details=" << details; | 364 | // qDebug() << "FileProtocol::stat details=" << details; | ||
369 | 365 | | |||
370 | const QString localFile = url.toLocalFile(); | 366 | const QString localFile = url.toLocalFile(); | ||
Show All 32 Lines |