[Gambas-user] FileAttribs
Rob
sourceforge-raindog2 at ...94...
Tue Jun 15 13:17:37 CEST 2004
On Tuesday 15 June 2004 06:15, VBTricks.de.vu Webmaster wrote:
> How to get the attributes of a file, detect if it's a folder,
> what was returned by the dir-function?
I think you're looking for the function "Stat".
http://www.binara.com/gambas-wiki/bin/view/Gambas/LangStat
Returns information about a file or a directory as a File object:
type, size, last modification time, permissions...
Example
WITH Stat("/home")
PRINT .Type = gb.Directory
PRINT Round(.Size / 1024); "K"
END WITH
- True
- 4K
More information about the User
mailing list