Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/undo-ransomware/ransomware_detection.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Held <ilovemilk@wusa.io>2018-08-30 17:38:45 +0300
committerMatthias Held <ilovemilk@wusa.io>2018-08-30 17:38:45 +0300
commit59a761956a794d6e790662a3b9489b95c6b82e4c (patch)
tree66feb04241036a09ef74ee5d28ac9503abfd3668 /lib/Controller
parent0d6d3da32c31bf06130ea863433e9498be77076e (diff)
Fix only delete files
Diffstat (limited to 'lib/Controller')
-rw-r--r--lib/Controller/ScanController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Controller/ScanController.php b/lib/Controller/ScanController.php
index 10dc6b2..5cb3e39 100644
--- a/lib/Controller/ScanController.php
+++ b/lib/Controller/ScanController.php
@@ -410,7 +410,7 @@ class ScanController extends OCSController
{
try {
$node = $this->userFolder->get($path);
- if ($node->isDeletable()) {
+ if ($node instanceof File && $node->isDeletable()) {
$node->delete();
} else {
return false;