private void RemoveSiteDirectory() { if (ImpersonatedFiles.Exists(_physicalSitePath)) { ImpersonatedFiles.Delete(_physicalSitePath, true); } }
private void RemoveOldDirectory() { if (string.IsNullOrWhiteSpace(_previousSitePath)) { return; } if (ImpersonatedFiles.Exists(_previousSitePath)) { ImpersonatedFiles.Delete(_previousSitePath); } }