コード例 #1
0
 private void RemoveSiteDirectory()
 {
     if (ImpersonatedFiles.Exists(_physicalSitePath))
     {
         ImpersonatedFiles.Delete(_physicalSitePath, true);
     }
 }
コード例 #2
0
 private void RemoveOldDirectory()
 {
     if (string.IsNullOrWhiteSpace(_previousSitePath))
     {
         return;
     }
     if (ImpersonatedFiles.Exists(_previousSitePath))
     {
         ImpersonatedFiles.Delete(_previousSitePath);
     }
 }