3 ms·
At first, temporary file created in current directory. So if directory is not writable -- temporary file creation at the very beginning will fail.
by stargrave 11y ago
At first, temporary file created in current directory. So if directory is not writable -- temporary file creation at the very beginning will fail.
- kevan 11y agoAh, that's what I missed. I guess there's still a possibility of permissions changing during the transfer, but I don't think there's anything you'd want to do to handle that other than error out.
- stargrave 11y agoIn that case I will print the message telling that something went wrong but temporary statefile is alive: https://github.com/stargrave/syncer/blob/master/syncer.go#L205 https://github.com/stargrave/syncer/blob/master/syncer.go#L2...