public function getModifiedDate($path)
    {

        //Check for the last modified
        $lmodified = 0;
        $files = glob($path . '/*');

        foreach ($files as $file) {
            if (is_dir($file)) {
                $modified = dirmtime($file);
            } else {
                $modified = filemtime($file);
            }
            if ($modified > $lmodified) {
                $lmodified = $modified;
            }
        }

        return $lmodified;
    }