tag:blogger.com,1999:blog-35868762.post2135221389531894245..comments2023-05-16T07:56:56.864-07:00Comments on Dead Programmer Society: Making S3 Folders In RubyRon Evanshttp://www.blogger.com/profile/06754261780924273552noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-35868762.post-27171270436505587662008-09-16T23:34:00.000-07:002008-09-16T23:34:00.000-07:00Way cool! Thanks for creating this!Way cool! Thanks for creating this!Billhttps://www.blogger.com/profile/11199805319097221664noreply@blogger.comtag:blogger.com,1999:blog-35868762.post-41289268415765086132008-05-16T04:45:00.000-07:002008-05-16T04:45:00.000-07:00If you are using rails, then including the monkey ...If you are using rails, then including the monkey patch in one of the files in library would be enough.Pavanhttps://www.blogger.com/profile/14943121038811822712noreply@blogger.comtag:blogger.com,1999:blog-35868762.post-19774970626755183952008-04-04T04:12:00.000-07:002008-04-04T04:12:00.000-07:00Hi Ron Evans,I think your monkey patch is the thin...Hi Ron Evans,<BR/>I think your monkey patch is the thing I was looking for the integration of S3. But I am in a fix here. Could you be patient enough and guide me as to where do I need to apply the monkey patch. If I copy paste it to my gem that I think will not be advisable as when I update the gem the patch would be lost. <BR/><BR/>Would be nice on your part to be elobrative on the place where the code is to be used for beginners like me. And more over would also appreciate if you could post an example of retrieving a file from S3 virtual folder.<BR/><BR/>Cheers<BR/>Vinayvinayhttps://www.blogger.com/profile/03271195321386881103noreply@blogger.comtag:blogger.com,1999:blog-35868762.post-65322995757937394752008-03-14T12:11:00.000-07:002008-03-14T12:11:00.000-07:00I've been looking at this convention for a program...I've been looking at this convention for a program I am writing using S3. I can say the reason they don't use the path/$folder$ convention you mentioned is because if you use the delimiter functionality in amazon then you won't know if the key is a folder without running another query on every key you get back.<BR/><BR/>Meaning if you do a query on /root/ using / as the delimiter then you'll get back File1, File2, Folder1, Folder2 but you won't know which ones are files and folders without doing 4 more queries. With this path$folder$ way you'll get back File1, File2, Folder1$folder$, Folder2$folder$ so it's easy to identify the folders without more hits to S3.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-35868762.post-45405718092128015972008-01-29T17:49:00.000-08:002008-01-29T17:49:00.000-08:00Yes, the convention for the dummy "folder" is rath...Yes, the convention for the dummy "folder" is rather odd. Not to mention not really documented anywhere, which certainly doesn't help!Ron Evanshttps://www.blogger.com/profile/06754261780924273552noreply@blogger.comtag:blogger.com,1999:blog-35868762.post-50859831909910282052008-01-27T07:29:00.000-08:002008-01-27T07:29:00.000-08:00>Then to get a directory listing for>"/path" you j...>Then to get a directory listing for<BR/>>"/path" you just do a query on S3 for <BR/>>all object whose key starts with<BR/>>"/path".<BR/>Actually you need to ask for keys starting with "/path/", i.e. including a trailing space. Otherwise you'll all also get e.g. "/pathfinder".<BR/><BR/>That is why I don't understand this convention. I would have preferred to call the dummy file "path/$folder$". In this way it would work much better with the prefix and delimiter parameters. Don't you agree?Christian Schmidthttps://www.blogger.com/profile/17280235371864302002noreply@blogger.com