AppserverIo\Appserver\Naming\NamingDirectory::prepareDirectory PHP Méthode

prepareDirectory() public méthode

Prepare's and return's the path either by stripping of the scheme if it is absolute or append the name, if it is relative.
public prepareDirectory ( string $name ) : The
$name string The name to prepare the directory with
Résultat The prepared path
    public function prepareDirectory($name)
    {
        // query whether or not the passed name is a absolute directory
        if ($this->containsScheme($name)) {
            return $this->stripSchema($name);
        }
        // if not, only append it and return the new path
        return $this->appendDirectory($name);
    }