valid - Use to validate a file or a directory.
valid("filename");
This function is used to validate a file or a directory. A file is valid if its below the root of the filesystem and can be stats.
The root of the filesystem is defined in the configuration file. See ExtensoConfig for more information.
Note: In the followings examples, the _ between the { should be removed to make it work.
res={_{ valid("/../../v5/html"); }}. return res=false. res={_{ a=valid("/../v5/html"); a;}}. return res=true. res={_{ a=valid("/noread"); a;}}. return res=true. res={_{ a=valid("/noraead"); a;}}. return res=false. res={_{ a=valid("/nor aead"); a;}}. return res=false.
Written by Pierre Laplante, <laplante@sednove.com>
Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis.
1.0 2014-09-09 21:24:14 laplante@sednove.com