On Friday, April 1, 2016 at 11:11:38 AM UTC-7, Leonel Câmara wrote:
>
> Well os.path.exists is a lot easier to remember. os.access also tests if 
> you have permission to access it so it's nice too, but it does have some 
> problems because the file may exist and you don't have permission and then 
> you try to create it again.
>
> Frankly I always use exists because it's a lot more readable and if I 
> don't have permission to access the files I'm supposed to be accessing then 
> it's going to be bad anyway.
>

I think I'm convinced.

/dps
 

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to