Use filectime instead of filemtime when creation date isn't available
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
This commit is contained in:
parent
d9cae66d9f
commit
663e610cd8
|
@ -77,7 +77,7 @@ class File {
|
|||
$this->hash = array_slice( $segments, -1 )[0];
|
||||
} else {
|
||||
$this->source = implode( '-', $segments );
|
||||
$this->created = filemtime( $this->path );
|
||||
$this->created = filectime( $this->path );
|
||||
$this->hash = $this->source;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue