https://github.com/owncloud/client/issues/6724#issuecomment-
417368475
bool DiscoveryPhase::checkSelectiveSyncNewFolder(const QString &path, RemotePermissions remotePerm)
{
- if (_syncOptions._confirmExternalStorage
+ if (_syncOptions._confirmExternalStorage && !_syncOptions._newFilesAreVirtual
&& remotePerm.hasPermission(RemotePermissions::IsMounted)) {
// external storage.
}
auto limit = _syncOptions._newBigFolderSizeLimit;
- if (limit < 0) {
+ if (limit < 0 || _syncOptions._newFilesAreVirtual) {
// no limit, everything is allowed;
return false;
}