Don't calculate permissions twice (#23917)

There is no need to calculate the permissions twice.
Saves some is_dir and file_exists calls.
This commit is contained in:
Roeland Douma 2016-04-12 09:45:59 +02:00 committed by Thomas Müller
parent 59080bef51
commit 4ddf9f98f1

View file

@ -648,7 +648,7 @@ abstract class Common implements Storage, ILockingStorage {
}
$data['etag'] = $this->getETag($path);
$data['storage_mtime'] = $data['mtime'];
$data['permissions'] = $this->getPermissions($path);
$data['permissions'] = $permissions;
return $data;
}