Gets the name from the relative path of the asset

@param relative
@return
963602
protected String getName(final String relative) {
        return relative.substring(relative.lastIndexOf(File.separator) + 1);
    }
468516
public static String getTopicID(final URI relativePath) {
        final String fragment = relativePath.getFragment();
        if (fragment != null) {
            final String id = fragment.lastIndexOf(SLASH) != -1
                              ? fragment.substring(0, fragment.lastIndexOf(SLASH))
                              : fragment;
            return id.isEmpty() ? null : id;
        }
        return null;
    }
732912
public String getPath() {
        Matcher matcher = pathPattern.matcher(name);
        if (matcher.find()) {
            String match = matcher.group(1);
            int lastDot = match.lastIndexOf('.');
            if (lastDot == -1)
                throw new IllegalStateException("Bad asset path: " + match);
            return match.substring(0, lastDot).replace('.', '/') + match.substring(lastDot);
        }
        else {
            return null;
        }
    }
208819
public String getBasename(String path) {
		int sepIdx = path.lastIndexOf(WEB_SEPARATOR_CHAR);
		if(sepIdx != -1) {
			return path.substring(sepIdx + 1);
		}
		return path;
	}
1092927
public static String computeRelativePath (File file, File relativeTo)
        throws IOException
    {
        String[] realDirs = getCanonicalPathElements(file);
        String[] relativeToDirs = getCanonicalPathElements(relativeTo);

        // Eliminate the common root
        int common = 0;
        for (; common < realDirs.length && common < relativeToDirs.length; common++) {
            if (!realDirs[common].equals(relativeToDirs[common])) {
                break;
            }
        }

        String relativePath = "";

        // For each remaining level in the file path, add a ..
        for (int ii = 0; ii < (realDirs.length - common); ii++) {
            relativePath += ".." + File.separator;
        }

        // For each level in the resource path, add the path
        for (; common < relativeToDirs.length; common++) {
            relativePath += relativeToDirs[common] + File.separator;
        }

        return relativePath;
    }
189088
public static String relativePath(File parent, File child) {
        Path superPath = parent.toPath();
        Path subPath = child.toPath();
        if (!subPath.startsWith(superPath)) {
            throw new IllegalArgumentException("Not a subpath: " + child);
        }
        return superPath.relativize(subPath).toString();
    }
775822
def _get_relative_path(self):
    """"""
    param_string = self._get_query_string()
    if self.path is None:
      path = '/'
    else:
      path = self.path
    if param_string:
      return '?'.join([path, param_string])
    else:
      return path
665680
public Page getRelativePage(String relativePath) {
    String path = getRootPath();
    if (path == null) {
      return null;
    }
    StringBuilder sb = new StringBuilder(path);
    if (!relativePath.startsWith("/")) {
      sb.append("/");
    }
    sb.append(relativePath);
    return pageManager.getPage(sb.toString());
  }
484265
String getName() {
    String path = getPath();
    if (path.isEmpty()) {
      return getDatabaseName() + "/documents";
    } else {
      return getDatabaseName() + "/documents/" + getPath();
    }
  }
210885
public static String classFilePathToClassname(String relativePath)
    {
        if (relativePath == null)
            return null;

        final int pos = relativePath.lastIndexOf(".class");
        if (pos < 0 && relativePath.lastIndexOf(".java") < 0)
            throw new IllegalArgumentException("Not a .class/.java file path: " + relativePath);

        relativePath = FilenameUtils.separatorsToUnix(relativePath);

        if (relativePath.startsWith("/"))
        {
            relativePath = relativePath.substring(1);
        }

        if (relativePath.startsWith("src/main/java/"))
        {
            relativePath = relativePath.substring("src/main/java/".length());
        }

        if (relativePath.startsWith("WEB-INF/classes/"))
        {
            relativePath = relativePath.substring("WEB-INF/classes/".length());
        }

        if (relativePath.startsWith("WEB-INF/classes.jdk15/"))
        {
            relativePath = relativePath.substring("WEB-INF/classes.jdk15/".length());
        }

        if (relativePath.endsWith(".class"))
        {
            relativePath = relativePath.substring(0, relativePath.length() - ".class".length());
        }
        else if (relativePath.endsWith(".java"))
        {
            relativePath = relativePath.substring(0, relativePath.length() - ".java".length());
        }

        String qualifiedName = relativePath.replace("/", ".");
        return qualifiedName;
    }
1246277
function getRelative(filename) {
    var parsed = chek_1.isString(filename) ? getParsed(filename) : filename;
    return path_1.relative(exports.cwd, path_1.join(parsed.dir, parsed.base || ''));
}
1026926
public function relativePath($path = null)
    {
        if (null === $path) {
            return str_replace(asset('/'), '', $this->relativePath);
        }

        $this->relativePath = $path;

        return $this;
    }
726436
@CheckForNull
  public String relativePath(Path dir, Path file) {
    Path baseDir = dir.normalize();
    Path path = file.normalize();
    if (!path.startsWith(baseDir)) {
      return null;
    }
    try {
      Path relativized = baseDir.relativize(path);
      return FilenameUtils.separatorsToUnix(relativized.toString());
    } catch (IllegalArgumentException e) {
      return null;
    }
  }
1374473
public String getAlias(String path)
    {
        if (m_allPathsAliased && m_attributePath.lastIndexOf(path) != -1)
        {
            return m_name;
        }
        Object retObj = m_mapping.get(path);
        if (retObj != null)
        {
            return (String) retObj;
        }
        return null;
    }
697137
def get_name_from_path(full_path, root_path):
    """"""
    relative_image_path = os.path.relpath(full_path, root_path)
    return "_".join(relative_image_path.split('.')[:-1]).replace('/', '_')\
        .replace(';', '').replace(':', '')
1274472
private String getFileName(String possiblyPathName) {
        possiblyPathName = possiblyPathName.substring(possiblyPathName.lastIndexOf('/')+1);
        possiblyPathName = possiblyPathName.substring(possiblyPathName.lastIndexOf('\\')+1);
        return possiblyPathName;
    }
4815
def get_path_url(path, relative=False):
    
    if relative:
        return os.path.relpath(path)
    else:
        return 'file://%s' % os.path.abspath(path)