[fpc-devel] Determin file size - how?
XHajT03 at hajny.biz
Thu Dec 15 00:29:20 CET 2011
On 15 Dec 11, at 0:10, Jonas Maebe wrote:
> On 15 Dec 2011, at 00:07, Tomas Hajny wrote:
> > Actually, it's somewhat
> > surprising for me to see that System.FileSize is implemented using
> > fpStat under Unix platforms rather than using fpLSeek (which should
> > be the equivalent to the API calls used under other platforms if I
> > understand it correctly)
> That would fail if you don't have rights to open the file.
That's true (and equally true for other platforms, btw), but
System.FileSize is defined as requiring an open file, i.e. this
should not make any difference, IMHO.
More information about the fpc-devel