WordPress at a glance
function is not described

getid3_lib::truepath() public WP 1.0

{} It's a method of the class: getid3_lib{}

No Hooks.

Return

String|false.

Usage

$result = getid3_lib::truepath( $filename );
$filename(string) (required)
-

Code of getid3_lib::truepath() WP 5.7.2

<?php
public static function truepath($filename) {
	// 2017-11-08: this could use some improvement, patches welcome
	if (preg_match('#^(\\\\\\\\|//)[a-z0-9]#i', $filename, $matches)) {
		// PHP's built-in realpath function does not work on UNC Windows shares
		$goodpath = array();
		foreach (explode('/', str_replace('\\', '/', $filename)) as $part) {
			if ($part == '.') {
				continue;
			}
			if ($part == '..') {
				if (count($goodpath)) {
					array_pop($goodpath);
				} else {
					// cannot step above this level, already at top level
					return false;
				}
			} else {
				$goodpath[] = $part;
			}
		}
		return implode(DIRECTORY_SEPARATOR, $goodpath);
	}
	return realpath($filename);
}