mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 05:16:00 +03:00
[GH-ISSUE #24] Directory Representation #16
Labels
No labels
bug
bug
dataloss
duplicate
enhancement
feature request
help wanted
invalid
need info
performance
pull-request
question
question
testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/s3fs-fuse#16
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @joe42 on GitHub (Mar 10, 2014).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/24
Hi,
Could you explain your design to map a directory structure to amazon s3? If I understand correctly, you use metadata headers like "application/x-directory" to create an object representing a single directory. I did not get as far as how you name those objects, or how you handle adding new objects to the directory. I would hash the actual directory path, and add the filenames into the object one name per line so that you can quickly list a directory without the need to list the whole bucket contents. It would be great if you could give me a hand here, though. You must have spent some time working this out, so I don't see the point in reinventing the wheel, when I can profit from your experience. I hope to use the solution for my Cloud Storage Framework CloudFusion, in an effort to integrate Google Storage, which seems to have similar restrictions concerning the creation of directories as amazon s3.
Thanks,
joe42
@joe42 commented on GitHub (Mar 20, 2014):
The solution appears to be appending a slash to the directory name, and making content type application/x-directory. For compatibility, check for file objects called _
folderThx,
joe42
@ggtakec commented on GitHub (Mar 21, 2014):
Latest s3fs understands directory object which has application/x-directory attributes, and which name has last words “/“, and which is old s3fs version used.
And directory name has “_$folder$”.
But when s3fs makes and changes a directory, that name is changed “xxxx/“.
This reason is for compatibility for other s3 tools.
I did not understand your request(issue) completely because of my english and etc.
If you can try to explain about it, please let me know.
Thanks in advance for your help.