public static void createDirectory ( Path dir , String dirDesc ) { try { Files . createDirectories ( dir ) ; } catch ( IOException ex ) { throw new WindupException ( "Error creating " + dirDesc + " folder: " + dir . toString ( ) + " due to: " + ex . getMessage ( ) , ex ) ; } }
Creates the given directory . Fails if it already exists .