Documentation ¶ Overview ¶ Package rename pkg/util/rename/rename.go c0-com-util Index ¶ func Rename(oldPath, newPath string) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Rename ¶ func Rename(oldPath, newPath string) error Rename renames (moves) oldPath to newPath using os.Rename. If paths are located on different drives or filesystems, os.Rename fails. In that case, Rename uses a workaround by copying oldPath to newPath and removing oldPath thereafter. Types ¶ This section is empty. Source Files ¶ View all Source files rename.go Click to show internal directories. Click to hide internal directories.