public override IFileSystem GetFileSystem(IFileSystemPermission permission) { siteSettings = CacheHelper.GetCurrentSiteSettings(); //IFileSystemPermission p = GetFileSystemPermission(); if (permission == null) { return null; } if (string.IsNullOrEmpty(permission.VirtualRoot)) { return null; } return DiskFileSystem.GetFileSystem(permission); }
public override IFileSystem GetFileSystem(IFileSystemPermission permission) { siteSettings = CacheHelper.GetCurrentSiteSettings(); //IFileSystemPermission p = GetFileSystemPermission(); if (permission == null) { return(null); } if (string.IsNullOrEmpty(permission.VirtualRoot)) { return(null); } return(DiskFileSystem.GetFileSystem(permission)); }
public static DiskFileSystem GetFileSystem(IFileSystemPermission permission) { if (permission == null) { return(null); } if (string.IsNullOrEmpty(permission.VirtualRoot)) { return(null); } DiskFileSystem fs = new DiskFileSystem(permission); return(fs); }
public override IFileSystem GetFileSystem(char displayPathSeparator) { IFileSystemPermission p = GetFileSystemPermission(); if (p == null) { return(null); } if (string.IsNullOrEmpty(p.RootFolder)) { return(null); } return(DiskFileSystem.GetFileSystem(p, displayPathSeparator)); }
public static DiskFileSystem GetFileSystem(IFileSystemPermission permission, char displayPathSeparator) { if (permission == null) { return(null); } if (string.IsNullOrEmpty(permission.RootFolder)) { return(null); } DiskFileSystem fs = new DiskFileSystem(permission, displayPathSeparator); return(fs); }
private DiskFileSystem(IFileSystemPermission permission) { this.permission = permission; fileBaseUrl = WebUtils.GetApplicationRoot(); if (permission.VirtualRoot.Contains("userfiles")) { string userFolder = permission.VirtualRoot.Substring(0, permission.VirtualRoot.LastIndexOf("userfiles")) + "userfiles/"; if (!FolderExists(userFolder)) { CreateFolder(userFolder); } } if (!FolderExists(permission.VirtualRoot)) { CreateFolder(permission.VirtualRoot); } }
public override IFileSystem GetFileSystem(int siteId) { var siteSettings = new SiteSettings(siteId); if (siteSettings == null) { log.Error($"Site Settings is NULL!!!! Passed SiteId={siteId} from "); } IFileSystemPermission p = GetFileSystemPermission(); if (p == null) { return(null); } if (string.IsNullOrEmpty(p.VirtualRoot)) { return(null); } return(DiskFileSystem.GetFileSystem(p)); }
public abstract IFileSystem GetFileSystem(IFileSystemPermission permission);
private DiskFileSystem(IFileSystemPermission permission, char displayPathSeparator) { this.permission = permission; this.displayPathSeparator = displayPathSeparator; }
public static DiskFileSystem GetFileSystem(IFileSystemPermission permission) { if (permission == null) { return null; } if(string.IsNullOrEmpty(permission.VirtualRoot)) { return null; } DiskFileSystem fs = new DiskFileSystem(permission); return fs; }