lang • stat

Stat

FileInfo = Stat ( Path [ , FollowLink ] )

Return information about a file or a directory as a Stat object:

If FollowLink is TRUE, then symbolic links are followed, i.e. the information about the target file is returned, not the information about the link itself.

Example

With Stat("/home")
  Print .Type = gb.Directory
  Print Round(.Size / 1024); "K"
End With
True
4K

See also