Implement Platform.homePath (#48)

* fix naming and path max

Co-authored-by: ruby0x1 <ruby0x1@pm.me>
This commit is contained in:
Dario Vladović
2021-05-02 13:00:19 -07:00
committed by GitHub
co-authored by ruby0x1
parent 8227330eb6
commit 8190115b97
5 changed files with 38 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
import "io" for File, Directory
import "os" for Platform
System.print(Platform.homePath is String) // expect: true
System.print(!Platform.homePath.isEmpty) // expect: true
System.print(File.realPath(Platform.homePath) == Platform.homePath) // expect: true
System.print(Directory.exists(Platform.homePath)) // expect: true