Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Section A.5. Built-in file variables

A.5. Built-in file variables

Files consumed using the File or FTP components have file-related variables available to the Simple language. Table A.3 lists those variables.

Table A.3. File-related variables available when consuming files
VariableTypeDescription
file:nameStringContains the filename (relative to the starting directory)
file:name.extStringContains the file extension
file:name.noextStringContains the filename without extension (relative to the starting directory)
file:onlynameStringContains the filename without any leading paths
file:onlyname.noextStringContains the filename without extension and leading paths
file:parentStringContains the file parent (the paths leading to the file)
file:pathStringContains the file path (including leading paths)
file:absoluteBooleanWhether or not the filename is an absolute or relative file path
file:absolute.pathStringContains the absolute file path.
file:length file:sizeLongContains the file length
file:modifiedDateContains the modification date of the file as a java.util.Date type



  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial