os: implement os.Symlink and os.Readlink

This commit is contained in:
Dan Kegel
2022-01-15 20:56:31 -08:00
committed by Ron Evans
parent db0efc52c7
commit 57b8f7e667
6 changed files with 183 additions and 11 deletions
+10
View File
@@ -15,6 +15,16 @@ import (
type syscallFd = syscall.Handle
// Symlink is a stub, it is not implemented.
func Symlink(oldname, newname string) error {
return ErrNotImplemented
}
// Readlink is a stub (for now), always returning the string it was given
func Readlink(name string) (string, error) {
return name, nil
}
func rename(oldname, newname string) error {
e := windows.Rename(fixLongPath(oldname), fixLongPath(newname))
if e != nil {