Check that file exists: Difference between revisions

 
Line 1,948:
=={{header|langur}}==
The prop() function returns a hash of file/directory properties.
<syntaxhighlight lang="langur">val .printresult = fimpure fn(.file) {
write .file, ": "
if val .p = prop(.file) {
Line 1,957:
}
} else {
writeln "not found or not accessiblenothing"
}
}
885

edits