Re: [Python-Dev] os.path.exists() / os.path.isdir() inconsistency when dealing with gvfs directories

2012-06-28 Thread Giampaolo Rodolà
2012/6/27 Nick Coghlan ncogh...@gmail.com: If someone wants to see the error details, they should use os.stat directly rather than an existence check. This is now tracked at http://bugs.python.org/issue15221 Regards, --- Giampaolo http://code.google.com/p/pyftpdlib/

Re: [Python-Dev] os.path.exists() / os.path.isdir() inconsistency when dealing with gvfs directories

2012-06-27 Thread Oleg Broytman
On Wed, Jun 27, 2012 at 01:49:34AM +0200, Giampaolo Rodol? g.rod...@gmail.com wrote: I've just noticed a strange behavior when dealing with gvfs filesystems: giampaolo@ubuntu:~$ python -c import os; print(os.path.exists('/home/giampaolo/.gvfs')) True giampaolo@ubuntu:~$ sudo su

Re: [Python-Dev] os.path.exists() / os.path.isdir() inconsistency when dealing with gvfs directories

2012-06-27 Thread Christian Heimes
Am 27.06.2012 01:49, schrieb Giampaolo Rodolà: I've just noticed a strange behavior when dealing with gvfs filesystems: giampaolo@ubuntu:~$ python -c import os; print(os.path.exists('/home/giampaolo/.gvfs')) True giampaolo@ubuntu:~$ sudo su root@ubuntu:~# python -c import os;

Re: [Python-Dev] os.path.exists() / os.path.isdir() inconsistency when dealing with gvfs directories

2012-06-27 Thread Hans Mulder
On 27/06/12 02:19:03, Giampaolo Rodolà wrote: 2012/6/27 Cameron Simpson c...@zip.com.au: So I'd be +0.5 for making the docs more clear that True is reliable and False may merely mean could not access. +1 +1 I was about to propose a 'strict' parameter which lets the exception propagate in

Re: [Python-Dev] os.path.exists() / os.path.isdir() inconsistency when dealing with gvfs directories

2012-06-27 Thread Nick Coghlan
If someone wants to see the error details, they should use os.stat directly rather than an existence check. -- Sent from my phone, thus the relative brevity :) ___ Python-Dev mailing list Python-Dev@python.org

Re: [Python-Dev] os.path.exists() / os.path.isdir() inconsistency when dealing with gvfs directories

2012-06-26 Thread Cameron Simpson
On 27Jun2012 01:49, Giampaolo Rodolà g.rod...@gmail.com wrote: | I've just noticed a strange behavior when dealing with gvfs filesystems: | | giampaolo@ubuntu:~$ python -c import os; | print(os.path.exists('/home/giampaolo/.gvfs')) | True | giampaolo@ubuntu:~$ sudo su | root@ubuntu:~# python -c

Re: [Python-Dev] os.path.exists() / os.path.isdir() inconsistency when dealing with gvfs directories

2012-06-26 Thread Giampaolo Rodolà
2012/6/27 Cameron Simpson c...@zip.com.au: On 27Jun2012 01:49, Giampaolo Rodolà g.rod...@gmail.com wrote: | I've just noticed a strange behavior when dealing with gvfs filesystems: | | giampaolo@ubuntu:~$ python -c import os; | print(os.path.exists('/home/giampaolo/.gvfs')) | True |