We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
能否将文件的创建时间&修改时间这两个,自动修改为作品发布时间,作为一个可选功能
The text was updated successfully, but these errors were encountered:
目前不考虑,实现该功能的库不多,且跨平台兼容性不好。
Sorry, something went wrong.
你可以手动通过Advanced Renamer来实现
那就简单些,仅设置文件的修改时间,参考 yt-dlp 的实现策略。
#L288
使用 Python 内置的 os.utime() 函数来高效地更新文件的访问时间(atime)和修改时间(mtime),适用于所有支持 POSIX 标准的平台(如 Linux、macOS 和 Windows)。
os.utime(filename, (time.time(), filetime))
您好,@hugepower 给出了实现方式,利用Python 内置的 os.utime() 函数,应该能解决关于功能库以及兼容性的问题。如果您愿意的话,麻烦尝试实现一下这个功能,谢谢
未来会考虑支持。
JoeanAmier
No branches or pull requests
能否将文件的创建时间&修改时间这两个,自动修改为作品发布时间,作为一个可选功能
The text was updated successfully, but these errors were encountered: