public static String getDirUri(final Configuration c, Path p) throws IOException {
    if (p.toUri().getScheme() != null) {
      return p.toUri().toString();
    }
    return null;
  }
Returns the URI in the string format
@param c configuration
@param p path
@return - the URI's to string format
hbase-common/src/main/java/org/apache/hadoop/hbase/util/CommonFSUtils.java