public static void createOrClearDestinationFolder(String path){
  File fpath=new File(path);
  fpath.mkdirs();
  deleteDirectoryContents(path,false);
}

public static void createOrClearDestinationFolder ( String path ) { File fpath = new File ( path ) ; fpath . mkdirs ( ) ; deleteDirectoryContents ( path , false ) ; }
creates a directory with given path if it does not exist and clears the contents of the directory in case it exists .
