How to Check Write Access of a Folder on Windows

2011-08-12 Thread Ayaskanta Swain
Hi, 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

RE: How to Check Write Access of a Folder on Windows

2011-08-12 Thread Ayaskanta Swain
Some additional information - I am using python 2.5.1 version it cannot be upgraded now to a higher version. Thanks Ayaskant- From: Ayaskanta Swain Sent: Friday, August 12, 2011 4:11 PM To: 'python-list@python.org' Subject: How to Check Write Access

Re: os.access giving incorrect results on Windows

2011-05-20 Thread Ayaskanta Swain
Hi Tim, Thanks for the reply and suggestions. I followed the patch provided by you in issue 2528, but the code looks very tricky to me. Anyways I wrote my Test.py script tried only the def test_access_w(self): test case which is defined under class FileTests(unittest.TestCase) by providing my

os.access giving incorrect results on Windows

2011-05-19 Thread Ayaskanta Swain
Hi All, Please help me in solving this issue. I want to check the write permissions on a directory on windows from my python script. I tried to use os.access(dirpath, os.W_OK) to check whether the user has write access or not, but it gives me incorrect result. It always gives me False

os.popen command working differently on Windows

2011-05-12 Thread Ayaskanta Swain
Hi All, Please help me in solving the following issue I am facing while executing my python script. Basically I am executing the OS specific move command to move a file/dir from one location to another. I am executing the 'mv' command on linux the 'move' DOS command on windows machine from my