Changing permissions on child folders in C#

后端 未结 2 1695
孤城傲影
孤城傲影 2021-01-19 23:54

I\'m writing a DLL to change permissions on a folder and everything underneath the folder. Below is the code that I have right now.

The problem comes when I call ad

2条回答
  •  日久生厌
    2021-01-20 00:16

    You have to do it recursively. You can specify inheritance rules for new folders/files but for existing you have to do it yourself.

提交回复
热议问题