We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f532c4a commit a12c2abCopy full SHA for a12c2ab
data-service/src/main/java/password/pwm/receiver/Storage.java
@@ -216,6 +216,15 @@ public void remove( )
216
217
static void mkdirs( final File file ) throws IOException
218
{
219
+ if ( file.exists() )
220
+ {
221
+ if ( file.isDirectory() )
222
223
+ return;
224
+ }
225
+ throw new IOException( "path already exists as file: " + file.getAbsolutePath() );
226
227
+
228
if ( !file.mkdirs() )
229
230
throw new IOException( "unable to create path " + file.getAbsolutePath() );
0 commit comments