forgejo/modules/util
zeripath 33a8eec33e
Retry rename on lock induced failures (#16435)
* Retry rename on lock induced failures

Due to external locking on Windows it is possible for an
os.Rename to fail if the files or directories are being
used elsewhere.

This PR simply suggests retrying the rename again similar
to how we handle the os.Remove problems.

Fix #16427

Signed-off-by: Andrew Thornton <art27@cantab.net>

* resolve CI fail

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
2021-07-15 11:46:07 -04:00
..
compare.go
copy.go
paginate.go
paginate_test.go
path.go
path_test.go
remove.go Retry rename on lock induced failures (#16435) 2021-07-15 11:46:07 -04:00
sanitize.go
sanitize_test.go
shellquote.go
shellquote_test.go
timer.go
url.go
util.go
util_test.go