writefile(".\subfolder\data.txt", "content"); // writes to <curpath>\subfolder\data.txt
listfolder(".\subfolder"); // takes <xypath> as base, and lists <xypath>\subfolder.
(I think only goto states this <xypath>-based parsing explicitly.)
But since we can browse to paths with .\ in addressbar, it's only intuitive to expect such relative paths should resolve to <curpath> as base with all functions (except for obvious exceptions, such as load, catalogload, columnlayout, ctbicons, loadlayout, loadsettings, paperfolder, tabset, tagload, toolbar etc which take feature-specific basepaths.)
[ed+] Moreover, most places in the reference say that paths "defaults to the current folder". So it's expected that relative paths will also follow current folder as well.
Or go the other way and make writefile, readfile's parsing of dotted relative paths <xypath>-based as well.
XYplorer Beta Club