Vale
Vale copied to clipboard
Path improvements
Some things i stumbled upon using path stuff on Windows.
stdlib/src/path/path.vale is missing the following import:
import stdlib.stringutils.*;
path.iterdir() fails on iterating if path is the root of a drive:
iterdir: path doesn't exist! R:
iterdir failed!
(panic)
path.readAsString(); fails on reading if the file is empty:
Failed to read file: R:\temp\empty-file.txt
One more :)
path.is_dir() returns true on files with weird names. Example: a♪b🌵🚗♡c.txt