getfstat
PurposeSynopsisfunction getfstat(filename:string):integer
Argument
filename Name (and path) of the file or directory to checkReturn valueBit encoded type and mode of the given file.ExampleThe following determines whether ftest is a directory and if it is writable:fstat:= getfstat("ftest") if bittest(fstat, SYS_TYP)=SYS_DIR then writeln("ftest is a directory") end-if if bittest(fstat, SYS_WRITE)=SYS_WRITE then writeln("ftest is writeable") end-ifFurther informationThe returned status type may be decoded using the constant mask SYS_TYP (the types are exclusive). Possible values are:The access mode may be decoded using the constant mask SYS_MOD (the access modes are additive). Possible values are:
SYS_DIR SYS_REG SYS_OTH
SYS_READ SYS_WRITE SYS_EXEC
If you have any comments or suggestions about these pages, please send mail to docs@dashoptimization.com.