Skip to content
Commit 989e0c40 authored by Méven Car's avatar Méven Car
Browse files

KFileItem: use permissions to determine isWritable and isReadable

This saves a lot of stat calls for local files.
It would allow remote protocols to have their exposed permissions taken into account instead of relying solely on `KProtocolManager::supportsWriting(d->m_url)` when they have uid/gid matching the client system (i.e NFS).

The drawback is that now KFileItem can have permissions detached compared to the data on disk for local files.
But permission change is something we track with inotify.
parent dbcdd6ae
Pipeline #423566 passed with stage
in 26 minutes and 46 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment