Thanks cbears, i've tested your changes and now i can see directories not
created via s3fs, but there are also a lot of errors regarding non-existent
files which s3fs tries to list, but which really don't exist - it somehow
takes fragments of the URL and expects those fragments to be files:
$ ls -l /mnt/s3/mybucket_production-s3fs-d705449/mybucket/attachments/
ls: cannot access
/mnt/s3/mybucket_production-s3fs-d705449/mybucket/attachments/mybuck: No
such file or directory
ls: cannot access
/mnt/s3/mybucket_production-s3fs-d705449/mybucket/attachments/mybu: No such
file or directory
ls: cannot access
/mnt/s3/mybucket_production-s3fs-d705449/mybucket/attachments/cket: No such
file or directory
total 1010
-rw-r--r-- 1 root grewej 599858 2008-09-09 10:37 adress_formular.pdf
drwxr-xr-x 1 root root 0 2010-11-02 10:08 avatar_items
drwxr-xr-x 1 root root 0 2010-11-02 10:08 avatar_items
drwxr-xr-x 1 root root 0 2010-11-02 10:08 cartoons
drwxr-xr-x 1 root root 0 2010-11-02 10:08 cartoons
-rw-r--r-- 1 root grewej 153564 2009-06-30 12:26 cc_export.html
drwxr-xr-x 1 root root 0 2010-11-02 10:08 character_friends
drwxr-xr-x 1 root root 0 2010-11-02 10:08 character_friends
drwxr-xr-x 1 root grewej 0 2010-05-29 19:08 character_teasers
drwxr-xr-x 1 root grewej 0 2010-05-29 19:08 character_teasers
?????????? ? ? ? ? ? mybu
?????????? ? ? ? ? ? mybuck
drwxr-xr-x 1 root root 0 2010-11-02 10:08 content_elements
drwxr-xr-x 1 root root 0 2010-11-02 10:08 content_items
drwxr-xr-x 1 root root 0 2010-11-02 10:08 content_items
drwxr-xr-x 1 root root 0 2010-11-02 10:08 customer_communications
drwxr-xr-x 1 root root 0 2010-11-02 10:08 customer_communications
[...]
There are some "folders" in that bucket created via s3fs, and some via a
different method, so only for some there's the empty file.
Comment #10 on issue 73 by moore...@suncup.net: Not seeing directories /
files unless created via s3fs
http://code.google.com/p/s3fs/issues/detail?id=73
(No comment was entered for this change.)
this sounds as if its the same problem as I'm having.. I uploaded a suite
of files to S3 using s3cmd, but when I mount the bucket to my ec2 instance
under s3fs There are only the files in the top (bucket) directory, no
subfolders - although these are visible in the S3 management console and
from every other place I look, e.g. cyberduck.
Would be jolly nice if this worked!
I have this problem too with s3fs-1.61
hm, looks like amazon don't list other folders in response.
there are more directories in web listing
Same here... I cannot see subfolders through s3fs that are visible within
the AWS Management Consle and though an S3 Compatible client such as
CrossFTP Pro.
Same problem here.
It sounds like there are two approaches for a fix. cbears attempted to get
s3fs to see into existing directories (which would be ideal). A less-good
option would be for s3fs to publish a spec for how you define files so that
others could pile on and build the right tools.
Does some kind of upload tool already exist? (Mounting a file system for a
simple upload is pretty heavy, and requires root.)
This is no longer simply a problem of s3fs not being able to read
directories created by third party clients. It can't read directories
created with the 'create folder' button in the AWS console, either. This
native S3 directory structure is the standard, right?
Seth, AWS console is at least a defacto standard, and will be the eventual
winner. If s3fs is to support anything beyond what it does now, AWS console
behavior should be top priority. (I didn't find anything describing what
AWS console was doing, but I didn't look too deeply.)
This would be an excellent enhancement if S3 looked at folders the same way
that the S3 console creates them.
I am dumbfounded as to why folder contents do not mirror what is created
via the S3 interface on Amazon. Why would anyone use this if you can't use
the existing tools to work with the data?
would have been nice to find this before i went to the trouble of compiling
fuse so i could compile this and abandon the package management standards.
sigh, either way, thx to the devs, perhaps ill give s3backer a whirl.