Methods

PathΒΆ

Path(s:Str, subtype:Any=false)

Path constructor
Source: stdlib.ngs:2694

s

path

subtype

Return Path sub-type, depending on lstat() call

Returns

Path or sub-type of Path

Example

Path(".")  # <Path path=.>
Path(".", true)  # <Dir path=.>
``find tmp/v8``.map(Path(X, true)).map(typeof).name.Stats()  # <Stats: {Dir=287, File=9220}>