skoobe / riofs

Userspace S3 filesystem
GNU General Public License v3.0
393 stars 60 forks source link

empty directories not syncing with s3 #119

Closed sureshamk closed 8 years ago

sureshamk commented 8 years ago

I created some empty directories , those are all not syncing with s3. If add some files , then it got added in bucket. But it should sync all the empty directories with bucket .

wizzard commented 8 years ago

Correct, you can't store an empty directory in S3, as it has no no concept of directories. If you really need to have an empty "directory", then create a hidden file in such directory (such as .tmp) and it will be synced to S3.

sureshamk commented 8 years ago

I have some situations to keep empty directories . In that situation how i can achieve it ? I don't want to add any empty file to the created directory by a program

wizzard commented 8 years ago

Unfortunately this is a AWS S3 limitation, currently we can't do anything about this. Only a hidden file in such directory could help.