Sorry for this message. I finally found what I needed with the py
builf-in str() function.
BrokenClock a écrit :
> Hi everybody,
> First of all, let me tell you how much I like FUSE : I think it is a powerful
> tool to improve the way we use our computers.
> Second, I want you to know that I'm new to both FUSE and Python, so please,
> forgive me if my questions seem silly to you.
> So, here the point. For my first test with fuse, I played a little bit with the
> hello.py that comes with fuse-python-0.2.
> I want to store the filenames visible in the root directory of my fs in a SQLite
> db, currently and temporaly saved as ~/bin/.stfs/db
> for row in cur:
> yield fuse.Direntry(row)
> So, when I mount the fs, I could see test0 and test1 as expected (lines 5 and 6
> from readdir()), but anything else.
> Can anyone help me with that?
> I've already make some researches, and I discovered that python received buffer
> from blob sqlite, and it may be related. I suppose that fuse is waiting for some
> string, and buffer is not an acceptable type. But I didn't found how to convert
> buffer to string currently, and I'm not sure this is really the problem. I tried
> to split() the buffer as I will have to do (as you may have guessed, I'm working
> to make a sort of tagfs), as I supposed that split() will return me some
> strings, but it did not work either.
> I'm sure that some of you have the solution, and any help will be greatly
> Best regards,