Permissions in NTFS for Tcl



From my research, I've been unable to find any convenient way of figuring out (or setting) the permissions on NTFS files under Windows using Tcl. Is there an inconvenient way?

In essense, there's a remote file store. If I upload a file that's readable by Everybody on the local machine, I want to set it to be public-read on the remote machine. Similarly with everybody-writable, and the reverse when I'm bringing files down. The sort of thing that's easy to parse out of chmod bits under Unix.

I don't want to parse the output of cacls. Is twapi generally what I'm looking for? It looks like it might do the trick, but it seems a bit overwhelming. :-)

Thanks in advance!

--
Darren New / San Diego, CA, USA (PST)
"That's pretty. Where is it?"
"Channelwood."
"We should go there on vacation."
"..."
.