diff --git a/src/Plugin/migrate/process/FileImport.php b/src/Plugin/migrate/process/FileImport.php
index 63eb4b3..fe48ad9 100755
--- a/src/Plugin/migrate/process/FileImport.php
+++ b/src/Plugin/migrate/process/FileImport.php
@@ -207,7 +207,7 @@ class FileImport extends FileCopy {
         // This means that the file was probably set to be removed during
         // garbage collection, which we don't want to happen anymore since we're
         // using it.
-        if (!$file->isTemporary()) {
+        if ($file->isTemporary()) {
           $file->setPermanent();
           $file->save();
         }
