FileExists
From GECK
A function added by the JIP NVSE Plugin.
Contents
Description
Returns whether or not a file (or a folder) with the specified path (relative to the Data folder) exists.
- If the file exists as a loose file, the function returns 1; If the file is packed in a BSA archive, the function returns 2.
- If the second argument isFolder is non-zero, the function checks for a folder, otherwise for a file.
- A string_var may be passed, prefixed with the $ operator.
Syntax
(exists:0/1/2) FileExists filePath:string isFolder:1/0
Example
set bExists to FileExists "meshes\ammo\10mmammo.nif"
set bExists to FileExists "Textures\jazzisparis" 1
set bExists to FileExists $sFilePath