import v2.0.0.0_RC3 | 2012-07-01
https://github.com/lucanos/CommunityID -> http://www.itadmins.net/archives/357
This commit is contained in:
0
libs/Zend/Service/Amazon/S3/Exception.php
Executable file → Normal file
0
libs/Zend/Service/Amazon/S3/Exception.php
Executable file → Normal file
32
libs/Zend/Service/Amazon/S3/Stream.php
Executable file → Normal file
32
libs/Zend/Service/Amazon/S3/Stream.php
Executable file → Normal file
@ -17,7 +17,7 @@
|
||||
* @subpackage Amazon_S3
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: Stream.php 16971 2009-07-22 18:05:45Z mikaelkael $
|
||||
* @version $Id: Stream.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -331,13 +331,13 @@ class Zend_Service_Amazon_S3_Stream
|
||||
$stat['blksize'] = 0;
|
||||
$stat['blocks'] = 0;
|
||||
|
||||
if(($slash = strchr($this->_objectName, '/')) === false || $slash == strlen($this->_objectName)-1) {
|
||||
/* bucket */
|
||||
$stat['mode'] |= 040000;
|
||||
} else {
|
||||
$stat['mode'] |= 0100000;
|
||||
}
|
||||
$info = $this->_s3->getInfo($this->_objectName);
|
||||
if(($slash = strchr($this->_objectName, '/')) === false || $slash == strlen($this->_objectName)-1) {
|
||||
/* bucket */
|
||||
$stat['mode'] |= 040000;
|
||||
} else {
|
||||
$stat['mode'] |= 0100000;
|
||||
}
|
||||
$info = $this->_s3->getInfo($this->_objectName);
|
||||
if (!empty($info)) {
|
||||
$stat['size'] = $info['size'];
|
||||
$stat['atime'] = time();
|
||||
@ -441,14 +441,14 @@ class Zend_Service_Amazon_S3_Stream
|
||||
$stat['blksize'] = 0;
|
||||
$stat['blocks'] = 0;
|
||||
|
||||
$name = $this->_getNamePart($path);
|
||||
if(($slash = strchr($name, '/')) === false || $slash == strlen($name)-1) {
|
||||
/* bucket */
|
||||
$stat['mode'] |= 040000;
|
||||
} else {
|
||||
$stat['mode'] |= 0100000;
|
||||
}
|
||||
$info = $this->_getS3Client($path)->getInfo($name);
|
||||
$name = $this->_getNamePart($path);
|
||||
if(($slash = strchr($name, '/')) === false || $slash == strlen($name)-1) {
|
||||
/* bucket */
|
||||
$stat['mode'] |= 040000;
|
||||
} else {
|
||||
$stat['mode'] |= 0100000;
|
||||
}
|
||||
$info = $this->_getS3Client($path)->getInfo($name);
|
||||
|
||||
if (!empty($info)) {
|
||||
$stat['size'] = $info['size'];
|
||||
|
Reference in New Issue
Block a user