code: @Deprecated
      public static File resolve(final String basedir, final String filepath) {
          final File pathname = new File(normalizePath(stripFragment(filepath), File.separator));
          if (basedir == null || basedir.length() == 0) {
              return pathname;
          }
          final String normilizedPath = new File(basedir, pathname.getPath()).getPath();
          return new File(normalizePath(normilizedPath, File.separator));
      }
docs: Resolve file path against a base directory path. Normalize the input file path, by replacing all the '\\', '/' with
  File.seperator, and removing '..' from the directory.
  
  <p>Note: the substring behind "#" will be removed.</p>
  
  @param basedir base dir, may be {@code null}
  @param filepath file path
  @return normalized path