public FilePath createTempDir ( final String prefix , final String suffix ) throws IOException , InterruptedException { try { String [ ] s ; if ( StringUtils . isBlank ( suffix ) ) { s = new String [ ] { prefix , "tmp" } ; // see File.createTempFile - tmp is used if suffix is null } else { s = new String [ ] { prefix , suffix } ; } String name = StringUtils . join ( s , "." ) ; return new FilePath ( this , act ( new CreateTempDir ( name ) ) ) ; } catch ( IOException e ) { throw new IOException ( "Failed to create a temp directory on " + remote , e ) ; } }
Creates a temporary directory inside the directory represented by this