From bc3f2839c25e0287b15f9d4b40f4591ba627799e Mon Sep 17 00:00:00 2001 From: William Desportes Date: Sun, 3 Dec 2023 21:33:39 +0100 Subject: [PATCH] Fix my last commit, use $this->fileSystem --- src/Resumable.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Resumable.php b/src/Resumable.php index e41b697..e4a8a87 100644 --- a/src/Resumable.php +++ b/src/Resumable.php @@ -348,12 +348,12 @@ private function createFileAndDeleteTmp(string $identifier, ?string $filename): $this->log('Removing chunk dir: ' . $chunkDir); // See: https://github.com/KnpLabs/Gaufrette/issues/524 - if (method_exists($filesystem, 'getAdapter')) { - $filesystem->getAdapter()->delete($chunkDir); + if (method_exists($this->fileSystem, 'getAdapter')) { + $this->fileSystem->getAdapter()->delete($chunkDir); return; } - $filesystem->delete($chunkDir); + $this->fileSystem->delete($chunkDir); } /**