Big Chungus
08/17/2021, 8:30 PMexistingDir/nonExistingDir/../existingFile
always return false with both, access ans statnapperley
08/17/2021, 11:12 PMfopen
function ( https://man7.org/linux/man-pages/man3/fopen.3.html ) from the POSIX library (automatically included with all Kotlin Native Linux targets), which will return null if the file doesn't exist. Do note that the function does accept a relative path (relative to the Working Directory).Big Chungus
08/17/2021, 11:39 PMBig Chungus
08/17/2021, 11:40 PMnapperley
08/18/2021, 1:59 AMfopen
function technique is slightly cumbersome, however it is very simple to use and gets the job done in a very short space of time.napperley
08/18/2021, 2:03 AMgetcwd
function ( https://man7.org/linux/man-pages/man3/getcwd.3.html ), and append the relative path to what is returned from the function.napperley
08/18/2021, 2:07 AMBig Chungus
08/18/2021, 8:23 AMBig Chungus
08/18/2021, 8:24 AMnapperley
08/19/2021, 1:31 AMBig Chungus
08/19/2021, 8:03 AM