Skip to content

Commit

Permalink
Fix getting Temporary file modification timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
Maksold authored Sep 14, 2023
1 parent a67fb34 commit 01fda08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Command/CatalogAbstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ protected function getTmpFilePaths($useCache = true, int $maxLifetimeInHours = 0
unset($this->tmpFilePaths[$k]);
} elseif ($this->driverFile->isFile($filePath)
&& $this->driverFile->isReadable($filePath)
&& (time() - $this->driverFile->stat($filePath)['ctime']) < $maxLifetime
&& (time() - $this->driverFile->stat($filePath)['mtime']) < $maxLifetime
) {
// Skip newly created files
unset($this->tmpFilePaths[$k]);
Expand Down

0 comments on commit 01fda08

Please sign in to comment.