Re: Re: [PEPr] Comment on File System::S3

From: Date: Fri, 04 Jan 2008 17:45:43 +0000
Subject: Re: Re: [PEPr] Comment on File System::S3
References: 1 2 3 4 5 6 7 8 9 10 11 12 13  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-48859@lists.php.net to get a copy of this message
Travis Swicegood wrote:
I had hoped that I could start out using Cesar's implementation and then switch to a PEAR version later on, but it has turned out to be too immature (doesn't support subfolders, is_dir() etc.).
That's actually hard to do without faking it.
The S3Fox extension for Firefox does a pretty good job <http://www.rjonna.com/ext/s3fox.php>. The API does support it to some extent, e.g. with the "prefix" and "delimiter" parameters. But yes, it is only an emulation (e.g. S3Fox supports empty folders using a hidden file). However, in certain situations it would be useful, but users should of course be aware that this is only an emulation and might not resemble a local filesystem perfectly. Perhaps it can be made an option whether mkdir() should be enabled. Do you think it is feasible? In any case, is_dir() should return true for the bucket itself, e.g. is_dir('s3://mybucket'). Christian

« previous php.pear.dev (#48859) next »