Example #1
0
        public void DeleteFolder(string fullPath)
        {
            Log.WriteStart("DeleteFolder");
            Log.WriteInfo("Folder Path : {0}", fullPath);

            try
            {
                FileSystemObject fso = new FileSystemObject();
                fso.DeleteFolder(@"\\?\" + fullPath, true);
            }
            catch (Exception ex)
            {
                Log.WriteError(ex);
                throw;
            }
            finally
            {
                Log.WriteEnd("DeleteFolder");
            }
        }