[Interest] Changing permissions in a dir
Sensei
senseiwa at gmail.com
Wed Apr 2 11:40:15 CEST 2014
On 3/31/14, 2:28pm, Bob Hood wrote:
>> Second: can I change permissions of a directory?
>
> Well, under UN*X-based systems, the permission changing should work as you
> expect with setPermissions() (assuming you have sufficient rights). Under
> Windows, though, it probably won't. Windows uses a different beast in terms
> of permissions (ACLs and such), so you may need to go with a Windows-specific
> solution in your code. Look up "AllocateAndInitializeSid", "SetEntriesInAcl",
> and "SetNamedSecurityInfo".
>
Thanks, I was hoping to find a nice Qt/portable solution.
I will rely on Windows-specific code as you suggested.
Thanks!
More information about the Interest
mailing list