Enable date and time settings for remote files#9
Enable date and time settings for remote files#9nanshiki wants to merge 4 commits intojrohel:mainfrom
Conversation
…es if file writing occurs
…ata. Fix to prevent date/time settings from being applied when closing files if file writing occurs.
|
Fixed the server to accept file close packets without date and time data. Fix to prevent date/time settings from being applied when closing files if file writing occurs. |
|
In the sample program for UNDOCUMENTED DOS, SFT's rel_sector/abs_sector are not initialized, and it appears that their contents are neither referenced nor overwritten in actual DOS environments. Therefore, we store the file open date/time information in rel_sector/abs_sector, compare it upon closing, and if any changes are detected, we send the data to the server for updating. |
|
Thank you for your PRs. I’ll review them later. I currently have a lot of other work. Note: |
int 21h ax=5701h updates the sft's file_time.
The file close packet adds the date/time information and sends the file_time to the server, which then sets the file's date/time information.
With this modification, the date and time information will also be copied when copying a file.