resolveLocalPath() public method

Resolves an absolute path into a path relative to the repository path
public resolveLocalPath ( string | array $path ) : string
$path string | array A file system path (or an array of paths)
return string
 /**
  * Returns the relative path to the resource based on the repository path
  *
  * @return  string
  */
 public function getLocalPath()
 {
     if (!$this->localPath) {
         $this->localPath = $this->repository->resolveLocalPath($this->fullPath);
     }
     return $this->localPath;
 }
 /**
  * {@inheritDoc}
  */
 public function keys()
 {
     try {
         $iterator = new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($this->repository->getRepositoryPath(), \FilesystemIterator::SKIP_DOTS | \FilesystemIterator::UNIX_PATHS));
     } catch (\Exception $e) {
         $iterator = new \EmptyIterator();
     }
     $keys = array();
     foreach ($iterator as $file) {
         $path = $this->repository->resolveLocalPath($file);
         if (preg_match('~\\.(?:svn|git)~i', $path)) {
             continue;
         }
         $keys[] = $key = $path;
         if ('.' !== dirname($key)) {
             $keys[] = dirname($key);
         }
     }
     $keys = array_unique($keys);
     sort($keys);
     return $keys;
 }