Ejemplo n.º 1
0
        public bool SaveFolders(Guid id, params string[] folders)
        {
            var packFolder = $"{syncRoot}/{id}";

            foreach (var folder in folders)
            {
                var path = Path.Combine(packFolder, folder.Substring(2));
                templateFileService.CopyFolder(folder, path);
            }
            return(true);
        }
Ejemplo n.º 2
0
        public virtual void SaveFolders(Guid packId, string[] folders)
        {
            if (folders == null || folders.Length == 0)
            {
                return;
            }

            var rootPath = Path.Combine(_syncRoot, packId.ToString());

            foreach (string folder in folders)
            {
                var target = Path.Combine(rootPath, folder.Substring(2));
                _templateFileService.CopyFolder(folder, target);
            }
        }