Skip to content

Commit

Permalink
Merge pull request #2 from Egsagon/main
Browse files Browse the repository at this point in the history
fixing an issue retrieving the file creation time.
  • Loading branch information
erbsland-dev authored Jan 4, 2024
2 parents 87e356d + 34959e0 commit ae259e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fast_file_encryption/encryptor.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ def _add_source_metadata(source: Path, meta: Dict[str, Any]) -> Dict[str, Any]:
if 'file_size' not in meta:
meta['file_size'] = source.stat().st_size
if 'created' not in meta:
meta['created'] = datetime.utcfromtimestamp(source.stat().st_birthtime).isoformat()
meta['created'] = datetime.utcfromtimestamp(source.stat().st_ctime).isoformat()
if 'modified' not in meta:
meta['modified'] = datetime.utcfromtimestamp(source.stat().st_mtime).isoformat()
return meta
Expand Down

0 comments on commit ae259e4

Please sign in to comment.