CmisSync.ControllerBase.ClearFolderAttributes C# (CSharp) Method

ClearFolderAttributes() private method

Fix the file attributes of a folder, recursively.
private ClearFolderAttributes ( string path ) : void
path string Folder to fix
return void
        private void ClearFolderAttributes(string path)
        {
            if (!Directory.Exists(path))
                return;

            string[] folders = Directory.GetDirectories(path);

            foreach (string folder in folders)
                ClearFolderAttributes(folder);

            string[] files = Directory.GetFiles(path);

            foreach (string file in files)
                if (!CmisSync.Lib.Utils.IsSymlink(file))
                    File.SetAttributes(file, FileAttributes.Normal);
        }