How to Check Write Access of a Folder on Windows
ayaskanta.swain at altair.com
Fri Aug 12 06:43:48 EDT 2011
Some additional information - I am using python 2.5.1 version & it
cannot be upgraded now to a higher version.
From: Ayaskanta Swain
Sent: Friday, August 12, 2011 4:11 PM
To: 'python-list at python.org'
Subject: How to Check Write Access of a Folder on Windows
I have a requirement where I need to check the write permissions on a
directory on Windows platform. I don't want to use the python function
os.access( ), since it does not work correctly on Windows. It is giving
incorrect results to me.
Another option of actually creating a temporary file inside the folder &
then deleting it to check whether the user has write permissions or not
is causing performance issues. It is slowing down our application when
we have to check the permissions on hundreds of folders. It also changes
the last access time stamp of the folder.
So is there any other way such as using Win32API or Win32 security
modules to check the permissions?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-list