Compare commits

...

1 Commits

Author SHA1 Message Date
Pavel Shevaev 795c612168 Stale artefact check now considers directory last modification time as well
Publish PHP Package / docker (push) Successful in 6s Details
2025-05-19 19:16:45 +03:00
1 changed files with 3 additions and 3 deletions

View File

@ -379,12 +379,12 @@ class TaskmanDirFiles implements \ArrayAccess, \Countable, \Iterator
}
}
function is_stale(string $file, iterable $deps) : bool
function is_stale(string $path, iterable $deps) : bool
{
if(!is_file($file))
if(!is_file($path) && !is_dir($path))
return true;
$fmtime = filemtime($file);
$fmtime = filemtime($path);
foreach($deps as $dep)
{