#getting the path for the current working directory

1 messages · Page 1 of 1 (latest)

light kernel
#

why is it not that

cerulean cairn
#

std.process.getCwdAlloc

light kernel
#

if you need the path as a string, then use what random suggested. fwiw Dir has a function called realpath which returns the path as a string, but it does have some caveats

cerulean cairn
#

if you just want to test if a path exists you don't need the cwd path

#

std.fs.cwd().access("relative/path")