Skip to content

Commit

Permalink
adjust AvirWrapper to also work on sync client
Browse files Browse the repository at this point in the history
  • Loading branch information
ata-no-one committed Nov 6, 2024
1 parent 76d7975 commit 5909bde
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/AvirWrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class AvirWrapper extends Wrapper {
* Modes that are used for writing
* @var array
*/
private $writingModes = ['r+', 'w', 'w+', 'a', 'a+', 'x', 'x+', 'c', 'c+'];
private $writingModes = ['r', 'r+', 'w', 'w+', 'a', 'a+', 'x', 'x+', 'c', 'c+'];

protected VerdictService $verdictService;
protected MailService $mailService;
Expand Down Expand Up @@ -179,6 +179,11 @@ function () use ($path, $logger) {
}

$owner = $this->getOwner($path);

// this will remove the file from the ui and respond to the sync client that the sync failed
$cache = $this->getCache($path);
$cache->remove($path);

$this->unlink($path);

if ($this->trashEnabled) {
Expand Down

0 comments on commit 5909bde

Please sign in to comment.