mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-21 12:59:04 +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}}
|
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.
|
// Rename renames (moves) oldpath to newpath.
|
||||||
// If newpath already exists and is not a directory, Rename replaces it.
|
// 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.
|
// OS-specific restrictions may apply when oldpath and newpath are in different directories.
|
||||||
|
|||||||
Reference in New Issue
Block a user