Vale icon indicating copy to clipboard operation
Vale copied to clipboard

Path improvements

Open m910q opened this issue 3 years ago • 1 comments

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

m910q avatar Feb 13 '22 17:02 m910q

One more :)

path.is_dir() returns true on files with weird names. Example: a♪b🌵🚗♡c.txt

m910q avatar Feb 13 '22 18:02 m910q