protected function getPath(string $file): string
    {
        foreach ($this->directories as $directory) {
            $dirFile = $directory . \DIRECTORY_SEPARATOR . $file;

            if (\file_exists($dirFile)) {
                return $directory . \DIRECTORY_SEPARATOR;
            }
        }

        return '';
    }