meven added a comment.

  I didn't know about `KMount`
  
  Gwenview uses it as we are trying here :
  
    bool urlIsFastLocalFile(const QUrl &url)
    {
        if (!url.isLocalFile()) {
            return false;
        }
    
        KMountPoint::List list = KMountPoint::currentMountPoints();
        KMountPoint::Ptr mountPoint = list.findByPath(url.toLocalFile());
        if (!mountPoint) {
            // We couldn't find a mount point for the url. We are probably in a
            // chroot. Assume everything is fast then.
            return true;
        }
    
        return !mountPoint->probablySlow();
    }

REPOSITORY
  R241 KIO

REVISION DETAIL
  https://phabricator.kde.org/D23420

To: meven, dfaure, #frameworks
Cc: broulik, anthonyfieroni, kde-frameworks-devel, LeGast00n, GB_2, michaelh, 
ngraham, bruns

Reply via email to