mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-04 02:57:46 +00:00
os: implement stub Chdir for non-OS systems
This commit is contained in:
committed by
Ron Evans
parent
3476100dd0
commit
c2eaa495df
@@ -42,6 +42,12 @@ func NewFile(fd uintptr, name string) *File {
|
||||
return &File{&file{handle: stdioFileHandle(fd), name: name}}
|
||||
}
|
||||
|
||||
// Chdir changes the current working directory to the named directory.
|
||||
// If there is an error, it will be of type *PathError.
|
||||
func Chdir(dir string) error {
|
||||
return ErrNotImplemented
|
||||
}
|
||||
|
||||
// Rename renames (moves) oldpath to newpath.
|
||||
// If newpath already exists and is not a directory, Rename replaces it.
|
||||
// OS-specific restrictions may apply when oldpath and newpath are in different directories.
|
||||
|
||||
Reference in New Issue
Block a user