code: private function isValidRelativePath(string $relativePath, string $cwd): bool
      {
          $valid = false;
          if ('./' === substr($relativePath, 0, 2)) {
              $tmpPath = $cwd . DIRECTORY_SEPARATOR . substr($relativePath, 2, strlen($relativePath));
  
              $valid = $this->isValidFullPath($tmpPath);
          }
  
          return $valid;
      }
docs: Validate a relative command path.