code: public static boolean createNewFile(String filePath) {
          if (!StringUtils.isEmpty(filePath)) {
              File file = new File(filePath);
              return createNewFile(file);
          }
          return false;
      }
docs: Create a new file, if the file exists, delete and create again.
  
  @param filePath file path.
  
  @return True: success, or false: failure.