code: public static String getFullPath(String filename) {
          if (filename == null) {
              return null;
          }
          int index = indexOfLastSeparator(filename);
          if (index < 0) {
              return StringUtils.EMPTY;
          }
          return filename.substring(0, index);
      }
docs: Gets the path from a full filename.
  
  @param filename a full filename
  @return the path