Closed ahmethakanbesel closed 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.
os.Rename()
os.WriteFile()
If
os.Rename()
fails, creates a copy of the file by usingos.WriteFile()
without renaming the original file, then deletes the initial file.