/** * Returns a context for computing this resource in case it is possible. * * Useful to avoid teleporting. * * @return null|string */ public function getContextForProcessInSinglePlace() { if (!$this->isLocal()) { return null; } if (PathUtil::basename($this->original) === $this->target) { return dirname($this->original); } }