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

Store timestamps of song files #106

Open
Neraste opened this issue Sep 8, 2019 · 1 comment
Open

Store timestamps of song files #106

Neraste opened this issue Sep 8, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@Neraste
Copy link
Member

Neraste commented Sep 8, 2019

This will help the feeder to determine if it should re-parse the song files.

@Neraste Neraste added the enhancement New feature or request label Sep 8, 2019
@Neraste
Copy link
Member Author

Neraste commented Sep 20, 2019

See how Git handles detection of files changes: here. Basically, it checks file stats instead of file content to avoid a costly file read, using system lstat and checking st_mtime among others. The Python os module and path.py library provide such data with respectively os.lstat and Path.lstat. The second part of the documentation details a race condition problem that I am not sure applies to us.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant