Piwik\Filesystem::createIndexFilesToPreventDirectoryListing PHP Method

createIndexFilesToPreventDirectoryListing() private static method

in tmp/ (sub-)folder(s) we create empty index.htm|php files
private static createIndexFilesToPreventDirectoryListing ( $path )
$path
    private static function createIndexFilesToPreventDirectoryListing($path)
    {
        if (!self::isPathWithinTmpFolder($path)) {
            return;
        }
        $filesToCreate = array($path . '/index.htm', $path . '/index.php');
        foreach ($filesToCreate as $file) {
            @file_put_contents($file, 'Nothing to see here.');
        }
    }