Sha256: 6aa3470e1e8c7df54894391c5d2d2a32bb5721ed3e0db08973d0ed1a40f0b35d
Contents?: true
Size: 1.22 KB
Versions: 4
Compression:
Stored size: 1.22 KB
Contents
FILE OBJECT TYPE NAME: file SHORTCUT: dir DESCRIPTION Reference to a file or folder (directory) on disk. The string value of the file object is the path and name of the file. CHILDREN None. MESSAGES read <into.obj> - Read file and put data in the specified object. If the <into.obj> is not specified, the data will be in <it>. write <from.obj> - Write the data in the <from.object> into the file. show - Show the contents of the file. page - Show the contents of the file, paginated open - Open the file with the default application for the type. check_exists - Check to see if the file exists. <It> will be true or false. check_is_file - Check to see if the file specified is a regular file. <It> will be true or false. check_is_dir - Check to see if the file specified is a diretory. <It> will be true or false. EXAMPLE exists [can] : f [file] : /Users/me/tmp on_load [script] : show "Checking to see if file exists: " + exists.f tell exists.f to check_exists show it tell exists.f to check_is_dir show "is a directory? " + it tell exists.f to check_is_file show "is a file? " + it SEE ALSO
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
gloo-0.7.3 | lib/gloo/help/objs/system/file.txt |
gloo-0.7.2 | lib/gloo/help/objs/system/file.txt |
gloo-0.7.1 | lib/gloo/help/objs/system/file.txt |
gloo-0.7.0 | lib/gloo/help/objs/system/file.txt |