question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Age filtering when scanning files should use creation date

See original GitHub issue

Currently they are filtered by modified date here, but doesn’t creation date make more sense?

If you put/copy new files into the scanned folder they should be treated as new. The modified date will never change unless you re-encode, and that would probably also change the hash and break subtitle detection.

The creation date is platform dependent but I found this stackoverflow answer with cross-platform code.

edit: Probably better to use creation and modified dates and pick the latest? So just max(os.path.getmtime(path), os.path.getctime(path))

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

1reaction
ratoaq2commented, Mar 6, 2019

A workaround would be to extract and touch the files

1reaction
MoshiMoshi0commented, Feb 27, 2019

The modified date will only change if change the file contents.

Exactly, so if you copy a file that you encoded a long time ago subliminal will not pick it up because only the creation time will change.

And as soon you get the file, it will have the current time as modified date (unless you fake it)

That does not seem to be the case when for example extracting using 7z or winrar. The files have their original modified date and a current creation date.

Read more comments on GitHub >

github_iconTop Results From Across the Web

File Dates (Aging) Report - FolderSizes
FolderSizes shows you the distribution of files by dates (age). This report can dynamically switch between NTFS date/time stamps (e.g. modified, created, and ......
Read more >
Scanning Files | Kafka Connect File Pulse - GitHub Pages
The LastModifiedFileFilter can be used to filter files that have been modified to recently based on their last modified date property.
Read more >
Important Considerations when filtering in Spark with filter and ...
This post explains how to use filter and where effectively in Spark. It teached you about predicate pushdown filtering, column pruning, ...
Read more >
Limiting Powershell Get-ChildItem by File Creation Date Range
There's probably a way to limit the command by a date range, likely using Select-Object, I just can't figure it out. Get-ChildItem 'PATH'...
Read more >
Overview of Files by Last Accessed Date Capability – Egnyte
The File Last Accessed timestamp is a feature specifically visible in the Egnyte Secure & Govern application that can be used to both...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found