public static DirectoryInfo LocalSitePhotoContentDirectory(this UserSettings settings, PhotoContent content,
                                                                   bool createDirectoryIfNotFound = true)
        {
            var contentDirectory = new DirectoryInfo(Path.Combine(settings.LocalSitePhotoDirectory().FullName,
                                                                  content.Folder, content.Slug));

            if (contentDirectory.Exists || !createDirectoryIfNotFound)
            {
                return(contentDirectory);
            }

            contentDirectory.Create();
            contentDirectory.Refresh();

            return(contentDirectory);
        }
        public static FileInfo LocalSitePhotoRssFile(this UserSettings settings)
        {
            var directory = settings.LocalSitePhotoDirectory();

            return(new FileInfo($"{Path.Combine(directory.FullName, "PhotoRss")}.xml"));
        }