Пример #1
0
        public bool CleanExportFolder(string folder)
        {
            try
            {
                if (syncFileService.DirectoryExists(folder))
                {
                    syncFileService.CleanFolder(folder);
                }
            }
            catch (Exception ex)
            {
                throw new ApplicationException("Failed to delete uSync folder (may be in use)", ex);
            }

            return(true);
        }
Пример #2
0
 /// <summary>
 ///  Does the given folder contain and uSync files for Content
 /// </summary>
 public bool HasContentFiles(string rootFolder)
 {
     return(_syncFileService.DirectoryExists(rootFolder + "Content"));
 }