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:
Corey McKrill 2023-10-26 16:59:11 -07:00 committed by GitHub
parent d9cae66d9f
commit 663e610cd8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}