From: Karel Marissens <karel.marissens@gm...> - 2009-03-21 21:45:16
I'm just getting started on using FUSE in python. I started from the
example script (to duplicate a directory) and tried adding a directory
of my own to every directory in the hierarchy (and in there another
directory). Everything seems to work, except when I try to "cd" to the
directory using the terminal. I can do an "ls" of the directory in the
terminal. I can also browse in the directory using Nautilus (GUI),
which seems contradictory to the terminal...
I've been playing a little with the Stat settings (setting rights to
777, setting my own userid / groupid as owner, ...) with no luck.
The exact error:
bash: cd: folder/: Permission denied
self.st_mode = 0
self.st_ino = 0
self.st_dev = 0
self.st_nlink = 0
self.st_uid = 0
self.st_gid = 0
self.st_size = 0
self.st_atime = 0
self.st_mtime = 0
self.st_ctime = 0
def getattr(self, path):
if not os.path.exists("." + path):
st = MyStat()
st.st_mode = S_IFDIR | 0777
st.st_nlink = 1
return os.lstat("." + path)
def readdir(self, path, offset):
if path[-5:] == '+FIND':
for e in os.listdir("." + path):
Thanks in advance for any help/suggestions!
Get latest updates about Open Source Projects, Conferences and News.