On Wed, Jun 27, 2012 at 01:49:34AM +0200, Giampaolo Rodol? <g.rodola at gmail.com> wrote: > I've just noticed a strange behavior when dealing with gvfs filesystems: > > giampaolo at ubuntu:~$ python -c "import os; > print(os.path.exists('/home/giampaolo/.gvfs'))" > True > giampaolo at ubuntu:~$ sudo su > root at ubuntu:~# python -c "import os; > print(os.path.exists('/home/giampaolo/.gvfs'))" > False > > This is due to os.stat() which internally fails with PermissionError (EACCES). BTW, the same is true for FUSE when an FS has been mounted without something like "-o allow_other" or "-o allow_root": root at nb # ls /home/phd/mnt/net ls: cannot access /home/phd/mnt/net: Permission denied Oleg. -- Oleg Broytman http://phdru.name/ phd at phdru.name Programmers don't die, they just GOSUB without RETURN.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4