Difference between revisions of "ObjectType:filepath"

From Lavish Software Wiki
Jump to navigation Jump to search
 
Line 14: Line 14:
  
 
== Examples ==
 
== Examples ==
 
+
;Example code
 +
function main()
 +
{
 +
    declare FP filepath "c:/program files/innerspace/scripts"
 +
    echo FileExists[test.iss] = ${FP.FileExists[test.iss]}
 +
    echo Path = ${FP.Path}
 +
    echo PathExists = ${FP.PathExists}
 +
    echo AbsolutePath = ${FP.AbsolutePath}
 +
}
 +
;Output
 +
FileExists[test.iss] = TRUE
 +
Path = c:/program files/innerspace/scripts
 +
PathExists = TRUE
 +
AbsolutePath = c:/program files/innerspace/scripts
  
 
== See Also ==
 
== See Also ==

Revision as of 17:57, 29 August 2005

Description

Members

  • bool PathExists: TRUE if the given path exists
  • bool FileExists[additional path]: TRUE if the given additional path exists. This can be a directory OR file, and can be an absolute path or a path relative to this filepath
  • string Path: The string representation of this path
  • string AbsolutePath: The string representation of this path converted to an absolute path

Methods

none

Returns

Same as Path

Examples

Example code
function main() 
{ 
   declare FP filepath "c:/program files/innerspace/scripts"
   echo FileExists[test.iss] = ${FP.FileExists[test.iss]}
   echo Path = ${FP.Path}
   echo PathExists = ${FP.PathExists}
   echo AbsolutePath = ${FP.AbsolutePath}
}
Output
FileExists[test.iss] = TRUE
Path = c:/program files/innerspace/scripts
PathExists = TRUE
AbsolutePath = c:/program files/innerspace/scripts

See Also