File.realPath().
Not tested yet, because we can't create symlinks from Wren and I don't want to check symlinks into the repo, but it seems to do the right thing.
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
import "io" for File
|
||||
|
||||
File.realPath("nonexistent") // expect runtime error: no such file or directory
|
||||
@@ -0,0 +1,6 @@
|
||||
import "io" for File
|
||||
|
||||
File.realPath(123) // expect runtime error: Path must be a string.
|
||||
|
||||
// TODO: Write success case tests too when we have an API to create symlinks
|
||||
// from Wren.
|
||||
Reference in New Issue
Block a user