Skip to content

fix(macOS): created time equal last modified time#111

Open
0xEEEE wants to merge 2 commits intoshiyanhui:masterfrom
0xEEEE:master
Open

fix(macOS): created time equal last modified time#111
0xEEEE wants to merge 2 commits intoshiyanhui:masterfrom
0xEEEE:master

Conversation

@0xEEEE
Copy link

@0xEEEE 0xEEEE commented Apr 3, 2019

When add header to an existed file, it always set created time as last modified time, because .st_ctime is equal to .st_mtime on macOS.
So I used .st_birthtime to get file's created time, hope it useful for macOS users.
Thank you for your work, it's a great plugin.

@0xEEEE
Copy link
Author

0xEEEE commented Jul 25, 2019

之前判断方法if platform.system() == 'Darwin'无效
修改为if sublime.platform() == 'osx'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant