mirror of
https://github.com/Studio-42/elFinder
synced 2026-06-08 12:37:09 +00:00
[VD:FlysystemGoogleDriveNetmount] remove tmb on netunmount
This commit is contained in:
@@ -238,6 +238,11 @@ class elFinderVolumeFlysystemGoogleDriveNetmount extends \Barryvdh\elFinderFlysy
|
||||
if (file_exists($cache) && is_writeable($cache)) {
|
||||
unlink($cache);
|
||||
}
|
||||
if ($tmbs = glob($this->tmbPath . DIRECTORY_SEPARATOR . $this->netMountKey . '*')) {
|
||||
foreach($tmbs as $file) {
|
||||
unlink($file);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -326,4 +331,12 @@ class elFinderVolumeFlysystemGoogleDriveNetmount extends \Barryvdh\elFinderFlysy
|
||||
list($url) = explode('?', $url);
|
||||
return $url;
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
protected function tmbname($stat) {
|
||||
return $this->netMountKey.substr(substr($stat['hash'], strlen($this->id)), -38).$stat['ts'].'.png';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user