Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
create output directory only when needed
  • Loading branch information
alexbruy authored and wonder-sk committed May 8, 2023
1 parent bf3bcac commit beceade
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -94,7 +94,7 @@ QVariantMap QgsPdalCreateCopcAlgorithm::processAlgorithm( const QVariantMap &par
}

const QString outputDir = parameterAsString( parameters, QStringLiteral( "OUTPUT" ), context );
if ( !QDir().mkpath( outputDir ) )
if ( !outputDir.isEmpty() && !QDir().mkpath( outputDir ) )
throw QgsProcessingException( QStringLiteral( "Failed to create output directory." ) );

QgsProcessingMultiStepFeedback multiStepFeedback( layers.size(), feedback );
Expand Down

0 comments on commit beceade

Please sign in to comment.