Skip to content

Commit

Permalink
BugFix
Browse files Browse the repository at this point in the history
  • Loading branch information
helviojunior committed Jan 27, 2025
1 parent 7200f59 commit c49d02b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions filecrawler/libs/containerfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,12 @@ def extract_sqlite3(self) -> bool:
except TypeError:
print("Couldn't get payload for %s" % full_name)

# Try to update file time from real file time
try:
os.utime(full_name, (self._file.stats.st_ctime, self._file.stats.st_ctime))
except:
pass

rc += 1

return True
Expand Down
4 changes: 4 additions & 0 deletions filecrawler/libs/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ def fingerprint(self):

return self._fingerprint

@property
def stats(self) -> os.stat_result:
return self._stats

@property
def size(self) -> int:
return self._stats.st_size
Expand Down

0 comments on commit c49d02b

Please sign in to comment.