Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Files consumed using the File or FTP components have file-related variables available to the Simple language. Table A.3 lists those variables.
| Variable | Type | Description |
|---|---|---|
| file:name | String | Contains the filename (relative to the starting directory) |
| file:name.ext | String | Contains the file extension |
| file:name.noext | String | Contains the filename without extension (relative to the starting directory) |
| file:onlyname | String | Contains the filename without any leading paths |
| file:onlyname.noext | String | Contains the filename without extension and leading paths |
| file:parent | String | Contains the file parent (the paths leading to the file) |
| file:path | String | Contains the file path (including leading paths) |
| file:absolute | Boolean | Whether or not the filename is an absolute or relative file path |
| file:absolute.path | String | Contains the absolute file path. |
| file:length file:size | Long | Contains the file length |
| file:modified | Date | Contains the modification date of the file as a java.util.Date type |