Esempio n. 1
0
 public void Remove()
 {
     if (Directory.Exists(storagePath))
     {
         IOUtility.DeleteDirectory(this.storagePath, true);
     }
 }
Esempio n. 2
0
 public override void Delete()
 {
     if (Exists)
     {
         IOUtility.DeleteDirectory(PhysicalPath, true);
     }
 }
Esempio n. 3
0
 public virtual void Remove(Models.Site item)
 {
     locker.EnterWriteLock();
     try
     {
         IOUtility.DeleteDirectory(item.PhysicalPath, true);
         ClearSiteData(item);
     }
     finally
     {
         locker.ExitWriteLock();
     }
 }
Esempio n. 4
0
        public override void Remove(T item)
        {
            string dir = item.PhysicalPath;

            GetLocker().EnterWriteLock();
            try
            {
                IOUtility.DeleteDirectory(dir, true);
            }
            finally
            {
                GetLocker().ExitWriteLock();
            }
        }
Esempio n. 5
0
        public void DeleteFiles(TextContent content)
        {
            var contentPath = new TextContentPath(content);

            try
            {
                if (Directory.Exists(contentPath.PhysicalPath))
                {
                    IOUtility.DeleteDirectory(contentPath.PhysicalPath, true);
                }
            }
            catch (Exception e)
            {
                Kooboo.HealthMonitoring.Log.LogException(e);
            }
        }
Esempio n. 6
0
        public void DeleteDirectory(string dir)
        {
            string fullPath = Path.Combine(this.storagePath, dir);

            IOUtility.DeleteDirectory(fullPath, true);
        }
Esempio n. 7
0
        public void DeleteFolder(string folderName)
        {
            var physicalPath = Path.Combine(DataDir.DataPhysicalPath, folderName);

            IOUtility.DeleteDirectory(physicalPath, true);
        }
Esempio n. 8
0
        public virtual void DeleteCaching(Page page)
        {
            var pageCachingPage = GetPageCachingPath(page);

            IOUtility.DeleteDirectory(pageCachingPage, true);
        }
Esempio n. 9
0
        protected virtual void DeleteTemplates(ProductType productType)
        {
            var templatePath = productType.GetTemplatePath();

            IOUtility.DeleteDirectory(templatePath.BaseDirPath.PhysicalPath, true);
        }