A few items of system information that I think would be useful to yab programmers if they were added to the PEEK system. There are workarounds for these, mostly involving system calls like SYSTEM$("if [ -e filename ] )", and parsing the results, but having them in the system would speed things up.
var = PEEK "PackageStatus"
0 running from a non-packaged location
1 running from /boot/system
2 running from /boot/home/config
var = PEEK "FileExists" Filename$
0 File does not exist
1 File exists
var = PEEK "DirectoryExists" Pathname$
0 Directory does not exist
1 Directory exists
var = PEEK "PackageStatus"
0 running from a non-packaged location
1 running from /boot/system
2 running from /boot/home/config
var = PEEK "FileExists" Filename$
0 File does not exist
1 File exists
var = PEEK "DirectoryExists" Pathname$
0 Directory does not exist
1 Directory exists