-
Notifications
You must be signed in to change notification settings - Fork 5.8k
os: implement tempDirSync and use in tests.ts #100
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great! I'm having some trouble with tests locally - I will merge after I resolve.
Thank you
os.ts
Outdated
| const res = sendMsg("os", { | ||
| command: pb.Msg.Command.TEMP_DIR_SYNC, | ||
| tempDirSyncDirname: dir, | ||
| temoDirSyncPrefix: prefix |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo: temoDirSyncPrefix -> tempDirSyncPrefix
msg.proto
Outdated
|
|
||
| // TEMP_DIR_SYNC | ||
| string temp_dir_sync_dirname = 140; | ||
| string temo_dir_sync_prefix = 141; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto.
os.go
Outdated
| return WriteFileSync(msg.WriteFileSyncFilename, msg.WriteFileSyncData, | ||
| msg.WriteFileSyncPerm) | ||
| case Msg_TEMP_DIR_SYNC: | ||
| return TempDirSync(msg.TempDirSyncDirname, msg.TemoDirSyncPrefix) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto. 😉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...My faults. Thank you so much :-)
|
@ry Sorry, I accidentally closed this PR, can you reopen it? |
Signed-off-by: Cholerae Hu [email protected]