Skip to content

Commit d6735de

Browse files
committed
fixup!: normalize path in s3
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
1 parent 54e4ce3 commit d6735de

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

apps/files_external/lib/Lib/Storage/AmazonS3.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -711,8 +711,9 @@ protected function getVersioningStatusFromBucket(): bool {
711711
}
712712

713713
public function hasUpdated(string $path, int $time): bool {
714+
$path = $this->normalizePath($path);
714715
// for files we can get the proper mtime
715-
if ($path !== '' && $object = $this->headObject($path)) {
716+
if (!$this->isRoot($path) && $object = $this->headObject($path)) {
716717
$stat = $this->objectToMetaData($object);
717718
return $stat['mtime'] > $time;
718719
} else {

0 commit comments

Comments
 (0)