code: public URI asDirectoryURI() throws URISyntaxException {
          final String pathName = getPathName(false);
          return new URI(VFSUtils.VFS_PROTOCOL, "", parent == null ? pathName : pathName + "/", null);
      }
docs: Get file's URI as a directory.  There will always be a trailing {@code "/"} character.
  
  @return the uri
  @throws URISyntaxException if the URI is somehow malformed