Skip to content

Commit

Permalink
fixes stat cache from #89
Browse files Browse the repository at this point in the history
  • Loading branch information
clphillips committed Dec 30, 2014
1 parent 0173fb4 commit fada987
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions S3.php
Expand Up @@ -561,7 +561,7 @@ public static function inputFile($file, $md5sum = true)
self::__triggerError('S3::inputFile(): Unable to open input file: '.$file, __FILE__, __LINE__);
return false;
}
clearstatcache(false, $file);
clearstatcache(false, $file);
return array('file' => $file, 'size' => filesize($file), 'md5sum' => $md5sum !== false ?
(is_string($md5sum) ? $md5sum : base64_encode(md5_file($file, true))) : '');
}
Expand Down Expand Up @@ -636,7 +636,7 @@ public static function putObject($input, $bucket, $uri, $acl = self::ACL_PRIVATE
$rest->size = $input['size'];
else {
if (isset($input['file'])) {
clearstatcache(false, $input['file']);
clearstatcache(false, $input['file']);
$rest->size = filesize($input['file']);
}
elseif (isset($input['data']))
Expand Down

0 comments on commit fada987

Please sign in to comment.