peak / s5cmd

Parallel S3 and local filesystem execution tool.
MIT License
2.72k stars 242 forks source link

storage/fs: handle os.Rename() error #603

Closed ahmethakanbesel closed 1 year ago

ahmethakanbesel commented 1 year ago

If os.Rename() fails, creates a copy of the file by using os.WriteFile() without renaming the original file, then deletes the initial file.