[issue17525] os.getcwd() fails on cifs share
Charles-François Natali
report at bugs.python.org
Sat Mar 23 09:52:37 CET 2013
Charles-François Natali added the comment:
os.getcwd() just calls the libc getcwd(3), so Python's not the problem here.
it's likely an issue with the CIFS implementation (I guess you're using fuse?).
Could you post the output of:
$ strace python -c "import os; os.getcwd())"
upon failure?
> Even though the unix 'pwd' and 'ls' commands still work, so I know my share is still accessible.
'pwd' is likely your shell builtin, which doesn't call getcwd(). You could try with /bin/getcwd. As for 'ls', it doesn't walk the directory tree like getcwd() does.
----------
nosy: +neologix
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17525>
_______________________________________
More information about the Python-bugs-list
mailing list