1edb976a92
1. git-lfs now only writes to unique temp files created with `ioutil.TempFile` that are open with `O_CREATE|O_EXCL` 2. Partially-downloaded file is now atomically borrowed and returned back via `os.Rename` 3. `.part <-> .tmp` and `.tmp -> final` renames are allowed to fail and are handled appropriately This is a continuation of #3813 Fixes #2825 There are several error codepaths where we borrow .part file but remove it instead of returning back. I believe that it is OK and in those erroneous cases it is better to restart download from scratch instead of attempting to use possibly-corrupt .part file. |
||
---|---|---|
.. | ||
schemas | ||
adapterbase.go | ||
api_test.go | ||
api.go | ||
basic_download.go | ||
basic_upload.go | ||
custom_test.go | ||
custom.go | ||
errors_test.go | ||
errors.go | ||
manifest_test.go | ||
manifest.go | ||
meter.go | ||
transfer_queue_test.go | ||
transfer_queue.go | ||
transfer_test.go | ||
transfer.go | ||
tus_upload.go | ||
verify_test.go | ||
verify.go |