private function buildFilePath (array $directories, string $fileName) : string
    {
        $dir = !empty($directories)
            ? "/" . implode("/", $directories)
            : "";

        $file = "" !== $fileName
            ? "/{$fileName}"
            : "";

        return $dir . $file;
    }
private function buildFilePath (array $directories, string $fileName) : string
    {
        $dir = !empty($directories)
            ? "/" . implode("/", $directories)
            : "";

        $file = "" !== $fileName
            ? "/{$fileName}"
            : "";

        return $dir . $file;
    }
private function buildFilePath ( array $ directories , string $ fileName ) : string { $ dir = ! empty ( $ directories ) ? "/" . implode ( "/" , $ directories ) : "" ; $ file = "" !== $ fileName ? "/{$fileName}" : "" ; return $ dir . $ file ; }
Builds a file path from the directory segments with the file name

@param array  $directories
@param string $fileName
@return string
Builds a file path from the directory segments with the file name