backblaze-b2-samples / b2fs4chia

MIT License
27 stars 8 forks source link

New update can only list the files in root folder. #7

Open qazmichaelgw opened 3 years ago

qazmichaelgw commented 3 years ago

If I have files under different folder, i.e. a/, b/, c/. It doesn't show anything under subfolders.

mpnowacki-reef commented 3 years ago

I've just tried on debian (4.19.160-2) and python 3.9.5 and it seems to work. Could you post your setup and the directory structure that fails?

qazmichaelgw commented 3 years ago

My structure: test -- aaa.plot -- bbb.plot tes2 -- ccc.plot test3 -- ddd.plot eee.plot

only eee.plot and folders shows up.

Python 3.9.0 Ubuntu 18.04

I use rclone --vfs-cache-mode full mount can work, but just slow in scan.

mpnowacki-reef commented 3 years ago

It's isomorphic to the one I'm testing. And how are you trying to view the structure? For example, does ls -R MOUNT_POINT only output this one file?

And by the way, I guess the mount process does not show any stack traces/errors?

qazmichaelgw commented 3 years ago

ls -R MOUNT_POINT: /b2/local:

/b2/ovh:

/b2/rise:

mpnowacki-reef commented 3 years ago

I'm sorry, I'm not sure I understand. Do you mean that:

/b2/ovh:

/b2/rise:


is the output of `ls -R /b2/`
?
mpnowacki-reef commented 3 years ago

I've got an idea. I have generated a bucket and a read only key for this bucket. Send me an email (you can get it from my commits to this repository) and I'll share the credentials with you. This way we can test a setup that works on my end.

qazmichaelgw commented 3 years ago

Yes. Any files in /b2 can be read. But any files under subfolders cannot.

What's is your email BTW.

mpnowacki-reef commented 3 years ago

I've sent you the credentials. After mounting the bucket with:

b2fs4chia /tmp/fuse-bucket --cache_timeout 3600

The output for ls -R /tmp/fuse-bucket/ is

/tmp/fuse-bucket/:
nested  one  two  up.txt

/tmp/fuse-bucket/nested:
nested

/tmp/fuse-bucket/nested/nested:
nested

/tmp/fuse-bucket/nested/nested/nested:
nested

/tmp/fuse-bucket/nested/nested/nested/nested:
up.txt

/tmp/fuse-bucket/one:
up.txt

/tmp/fuse-bucket/two:
up.txt  up2.txt

Please let me know if it works the same for you.