public boolean createNewFile ( Path f ) throws IOException { if ( exists ( f ) ) { return false ; } else { create ( f , false , getDefaultBufferSize ( ) ) . close ( ) ; return true ; } }
Creates the given Path as a brand - new zero - length file . If create fails or if it already existed return false .