function Filesystem::isAbsolutePath
Same name in this branch
- 11.1.x vendor/symfony/filesystem/Filesystem.php \Symfony\Component\Filesystem\Filesystem::isAbsolutePath()
Checks if the given path is absolute
Return value
bool
2 calls to Filesystem::isAbsolutePath()
- Filesystem::findShortestPath in vendor/
composer/ composer/ src/ Composer/ Util/ Filesystem.php - Returns the shortest path from $from to $to
- Filesystem::findShortestPathCode in vendor/
composer/ composer/ src/ Composer/ Util/ Filesystem.php - Returns PHP code that, when executed in $from, will return the path to $to
File
-
vendor/
composer/ composer/ src/ Composer/ Util/ Filesystem.php, line 565
Class
- Filesystem
- @author Jordi Boggiano <j.boggiano@seld.be> @author Johannes M. Schmitt <schmittjoh@gmail.com>
Namespace
Composer\UtilCode
public function isAbsolutePath(string $path) {
return strpos($path, '/') === 0 || substr($path, 1, 1) === ':' || strpos($path, '\\\\') === 0;
}