public static function get_directory_for_current_subsite()
    {
        $subsite = Subsite::currentSubsite();
        if ($subsite) {
            if ((int) $subsite->AssetsFolderID > 0) {
                $dirObj = $subsite->AssetsFolder();

                $dirName = str_replace('assets/', '', $dirObj->Filename);

                //make sure we've got no trailing slashes
                $dirName = str_replace('/', '', $dirName);

                return $dirName;
            }
        } else {
            return false;
        }
    }