code: public function set(string $name, string $path): DirectoriesInterface
      {
          $path = str_replace(['\\', '//'], '/', $path);
          $this->directories[$name] = rtrim($path, '/') . '/';
  
          return $this;
      }
docs: {@inheritdoc}