Just another Perl shrine | |
PerlMonks |
Re: Checking "Modify" property of the file on windowsby BrowserUk (Patriarch) |
on Jul 03, 2016 at 12:33 UTC ( [id://1167059]=note: print w/replies, xml ) | Need Help?? |
it appears that on windows to delete the file i need to be able to modify it (even if I can read and write the file i may not be able to delete it). Correct! It can also be more complex than that. The simplest way to get the full DACLs for a file or directory is:
See the help for the icacls command for the explanation of the output Its not the friendliest format for the information, but it is easily parsed for specific purposes. Alternatively, take a look at jenda's Win32::FileSecurity. Be warned, it has limitations, lacks documentation and isn't the simplest of interfaces. With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority". I knew I was on the right track :)
In the absence of evidence, opinion is indistinguishable from prejudice. Not understood.
In Section
Seekers of Perl Wisdom
|
|