| Getting Started | Documentation | Glish | Learn More | Programming | Contact Us |
| Version 1.9 Build 1556 |
|
| Package | utility | |
| Module | misc |
include "os.g"
| basename | get file part in path names |
| copy | copy a file, directory, or symlink |
| dir | return a vector of strings with directory listing |
| dirname | get directory part in path names |
| done | end the os tool |
| edit | edit a file |
| fileexists | test if files exists |
| filetime | return the file time |
| filetimestring | return the file time string |
| filetype | determine file type |
| freespace | determine freespace on file systems |
| fullname | expand path names |
| isvalidpathname | test if path names are valid |
| lockinfo | get info about table use and locking |
| ls | directory listing |
| mail a message to a user | |
| mkdir | create directories |
| move | move a file, directory, or symlink |
| remove | remove files, directories, or symlinks |
| showtableuse | tell if a table is used or locked |
| size | determine file or directory sizes |
| type | Return the type of this tool |
Note that glish has some built-in functions to do file IO. It also has the stat function to obtain file information. However, those functions do not handle environment variables and tilde expansion.
include 'os.g'
dos.fileexists ('~/file.name');
dos.freespace ('.');