private function getFolderSize($path)
    {
        $size = 0;

        foreach (new RecursiveIteratorIterator(new RecursiveDirectoryIterator($path)) as $directory) {
            /** @var  \SplFileInfo  $directory */
            $size += $directory->getSize();
        }

        return $size;
    }