predict directory write permission under windows?

Qiangning Hong hongqn at gmail.com
Mon Dec 13 09:14:03 EST 2004


I want to know if I can write files into a directory before I actually 
perferm the write behavor.  I found os.access(path, os.W_OK) but it uses 
real uid/gid to check instead of euid/egid so it doesn't fit my problem.

I don't know how to get euid/egid under windows so I cannot use the mode 
infomation returned by os.stat().

Anybody give me a hint?




More information about the Python-list mailing list