github.com/gaukas/wazerofs@v0.1.0/sysfs/rename_plan9.go (about) 1 package sysfs 2 3 import ( 4 "os" 5 6 "github.com/tetratelabs/wazero/experimental/sys" 7 ) 8 9 func rename(from, to string) sys.Errno { 10 if from == to { 11 return 0 12 } 13 return sys.UnwrapOSError(os.Rename(from, to)) 14 }