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