You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are some smaller differences which need to be inspected, whether they are intentional or not.
In the end, if the local.php uses $this->buildPath($path) instead of $this->datadir . $path (see #12462) a lot of the code duplication could be removed, which would be a nice step to avoid problems as listed below.
public function stat($path)
local calls clearstatcache(); in the beginning, mappedlocal does not call it at all. @icewind1991 you added this to local.php: 283c10f
public function touch($path, $mtime = null)
local checks whether the file exists and is updateable before touching it
if ($this->file_exists($path) and !$this->isUpdatable($path)) {
returnfalse;
}
Can the mentioned people please have a look at the respective commits and say whether there is a reason, why the change should not also be applied to mappedlocal.php?
Because I can not find a reason and would therefor port the changes.
The text was updated successfully, but these errors were encountered:
To be honest, the change I made was only to local.php because that was where the issue was reported. I see no reason it can't be ported to mappedlocal.php, but I'd say that @icewind1991 is probably the person to confirm this.
It would make more sense imo to get rid of MappedLocal and instead inject a mapper in the local storage (which on non-win systems would just do the $this->data.$path)
There are some smaller differences which need to be inspected, whether they are intentional or not.
In the end, if the local.php uses
$this->buildPath($path)
instead of$this->datadir . $path
(see #12462) a lot of the code duplication could be removed, which would be a nice step to avoid problems as listed below.public function stat($path)
local calls
clearstatcache();
in the beginning, mappedlocal does not call it at all.@icewind1991 you added this to local.php: 283c10f
public function touch($path, $mtime = null)
local checks whether the file exists and is updateable before touching it
@icewind1991 and @DeepDiver1975 you added this to local.php 258ad38 and d069ee8
public function free_space($path)
local.php
mappedlocal.php
@icewind1991 you added this to local.php ed83597 and 25370fc
public function hasUpdated($path, $time)
local.php
mappedlocal.php
@Xenopathic you add this to local.php eeee9ea
public function isLocal()
local.php is true, which should be also the case for mappedlocal.php when looking at the description:
@PVince81 you added that to local.php with 788c854
Can the mentioned people please have a look at the respective commits and say whether there is a reason, why the change should not also be applied to mappedlocal.php?
Because I can not find a reason and would therefor port the changes.
The text was updated successfully, but these errors were encountered: