[Tutor] [HELP]how to test properties of a file

Bernard Lebel 3dbernard at gmail.com
Tue Apr 5 16:40:41 CEST 2005


As far as I'm aware, this is very normal. The file is being used by an
application, so there is a lock on it.


Cheers
Bernard


On Apr 4, 2005 7:34 PM, Shidai Liu <shidai.liu at gmail.com> wrote:
> I found out in the following situation, it fails to work.
> Say, 'somefile.csv' is opened by EXCEL,
> >>> os.access('somefile.csv', os.W_OK)
> True
> >>> file('somefile.csv', 'w')
> IOError: [Errno 13] Permission denied: 'somefile.csv'


More information about the Tutor mailing list