'NautilusVFSFile' object has no attribute 'rfind'
In my extension python script when I call os.path.dirname() or anything linked with paths I get this error:
git-nautilus-icons.py", line 790, in get_file_items
path = path = os.path.basename(file)
File "/usr/lib/python2.7/posixpath.py", line 114, in basename
i = p.rfind('/') + 1
AttributeError: 'NautilusVFSFile' object has no attribute 'rfind''
If I change the function, I could have no attribute 'startswith', 'endswith', ...
Maybe there is a problem with my python version but I do not know how to redirect that, I tried updated all the required modules:
python-enum34 is already the newest version (1.1.6-2).
python-gi is already the newest version (3.26.1-2).
python-pathlib is already the newest version (1.0.1-2).
python-nautilus is already the newest version (1.1-6).