-
Notifications
You must be signed in to change notification settings - Fork 200
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
LuaMacro plugin: Enable win.GetFileTimes/win.SetFileTimes to get/set change time #611
Comments
@johnd0e, as you know I'm spending all my spare time nowadays on far2m, etc. and there's no |
@shmuz, yes I know. |
|
I will be happy to help where I can. |
@johnd0e Thank you for trying to get this issue resolved.
@shmuz The suggestion and the proposed implementation are the same, i.e. to use different functions, ones that get/set 4 file times instead of 3. I'd be happy to submit a patch if someone can review and commit it. |
It seems to be the right way. It won't guarantee immediate review and commit but the chances would be much higher. |
Description of the new feature or improvement
The Lua function
win.GetFileTimes
returns Creation time, Last access time, and Last write time as shown in the following code. It does not return Change time.FarManager/plugins/luamacro/luafar/win.c
Lines 863 to 870 in 2326d88
Similarly,
win.SetFileTimes
sets the same time values as shown in the following code. It does not set Change time.FarManager/plugins/luamacro/luafar/win.c
Lines 917 to 923 in 2326d88
Could you please add support for getting and setting Change time as well? This would allow Lua macros to set and restore all file times, similar to the Preserve all timestamps feature in the Copy and Rename/Move dialogs.
Proposed technical implementation details (optional)
Use
file::GetTime
andfile::SetTime
instead ofGetFileTime
andSetFileTime
respectively.FarManager/far/platform.fs.hpp
Lines 258 to 260 in 2326d88
The text was updated successfully, but these errors were encountered: