Merge pull request #62284 from rouault/IsLocalFile_fix

[OGR provider] Fix QgsOgrProviderUtils::IsLocalFile() implementation …
This commit is contained in:
Alexander Bruy 2025-06-16 13:03:51 +01:00 committed by GitHub
commit 6c9250f95c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1177,7 +1177,7 @@ bool QgsOgrProviderUtils::IsLocalFile( const QString &path )
#else
QStorageInfo info( dirName );
const QString fileSystem( info.fileSystemType() );
bool isLocal = path != QLatin1String( "nfs" ) && path != QLatin1String( "smbfs" );
bool isLocal = fileSystem != QLatin1String( "nfs" ) && fileSystem != QLatin1String( "smbfs" );
if ( !isLocal )
QgsDebugMsgLevel( QStringLiteral( "Filesystem for %1 is %2" ).arg( path, fileSystem ), 2 );
return isLocal;