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 '';
    }
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 '';
    }
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 '' ; }
Get the data path for a file.

@param string $file

@return string
Get the data path for a file .