Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize scan to only instrument new files #2

Open
dresselm opened this issue May 16, 2012 · 0 comments
Open

Optimize scan to only instrument new files #2

dresselm opened this issue May 16, 2012 · 0 comments
Assignees

Comments

@dresselm
Copy link
Owner

The scanner currently walks the entire directory structure and writes out metadata files within each directory. Running scan again will do the same. There are several easy scanning optimizations:

  • Instead of writing over the metadata file, amend it
  • Touch the metadata file after each run, even if it's not modified, so that we can compare it's modified time to the media in the directory. If any media have a more recent modified time, re-instrument them.
@ghost ghost assigned dresselm May 17, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant