mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-10 05:53:39 +00:00
os: implement Getwd
This commit is contained in:
committed by
GitHub
parent
98fbf7ff25
commit
b1ec8eb2e0
+1
-2
@@ -196,9 +196,8 @@ func Lstat(name string) (FileInfo, error) {
|
||||
return nil, &PathError{"lstat", name, ErrNotImplemented}
|
||||
}
|
||||
|
||||
// Getwd is a stub (for now), always returning an empty string
|
||||
func Getwd() (string, error) {
|
||||
return "", nil
|
||||
return syscall.Getwd()
|
||||
}
|
||||
|
||||
// Readlink is a stub (for now), always returning the string it was given
|
||||
|
||||
Reference in New Issue
Block a user