[fpc-pascal] How to get the permission f a file ?

Ewald ewald at yellowcouch.org
Wed Jun 17 16:52:45 CEST 2015


On 06/17/2015 04:42 PM, fredvs wrote:
> But how to check if a file has executable permission (and if not, change it
> with fpchmod(thefile S_IRWXU);) ?
stat?

See:
    http://linux.die.net/man/2/stat
    http://www.freepascal.org/docs-html/rtl/baseunix/fpstat.html
    http://www.freepascal.org/docs-html/rtl/baseunix/stat.html

-- 
Ewald




More information about the fpc-pascal mailing list