public function resolveFullPath($path)
    {
        if (is_array($path)) {
            $paths  = array();
            foreach ($path as $p) {
                $paths[]    = $this->resolveFullPath($p);
            }
            return $paths;
        } else {
            if (strpos($path, $this->getRepositoryPath()) === 0) {
                return $path;
            }
            $path  = FileSystem::normalizeDirectorySeparator($path);
            $path  = ltrim($path, '/');
            return $this->getRepositoryPath().'/'.$path;
        }
    }
public function resolveFullPath($path)
    {
        if (is_array($path)) {
            $paths  = array();
            foreach ($path as $p) {
                $paths[]    = $this->resolveFullPath($p);
            }
            return $paths;
        } else {
            if (strpos($path, $this->getRepositoryPath()) === 0) {
                return $path;
            }
            $path  = FileSystem::normalizeDirectorySeparator($path);
            $path  = ltrim($path, '/');
            return $this->getRepositoryPath().'/'.$path;
        }
    }
public function resolveFullPath ( $ path ) { if ( is_array ( $ path ) ) { $ paths = array ( ) ; foreach ( $ path as $ p ) { $ paths [ ] = $ this -> resolveFullPath ( $ p ) ; } return $ paths ; } else { if ( strpos ( $ path , $ this -> getRepositoryPath ( ) ) === 0 ) { return $ path ; } $ path = FileSystem :: normalizeDirectorySeparator ( $ path ) ; $ path = ltrim ( $ path , '/' ) ; return $ this -> getRepositoryPath ( ) . '/' . $ path ; } }
Resolves a path relative to the repository into an absolute path

@param   string|array  $path     A local path (or an array of paths)
@return  string|array            Either a single path or an array of paths is returned
Resolves a path relative to the repository into an absolute path