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

Restore file mtimes after modification #442

Open
GoogleCodeExporter opened this issue Mar 13, 2015 · 3 comments
Open

Restore file mtimes after modification #442

GoogleCodeExporter opened this issue Mar 13, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

Especially when doing a "beets update", but also with other operations 
involving just updating the tags instead of the audio data of a file, it would 
be great if there was an option to preserve the file modification times, so 
that players that use file modification times wouldn't detect the files as new 
additions.

The feature could be implemented simply by doing a 

    filetimes = os.stat(file)

before writing out the metadata, and a

    os.utime(file, filetimes)

after writing it.

Original issue reported on code.google.com by julf.helsingius on 30 Sep 2012 at 7:14

@untitaker
Copy link

Do not comment here, but on beetbox/beets#146

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

2 participants