FileExists()

is a basic Netscript function.
__TOC__
== Description ==
Script filenames are case sensitive, but other types of filenames are not. For example, the function "fileExists" will work correctly for "brutessh.exe" even though the actual name of the program is "BruteSSH.exe". If the "hostname" argument is not included, the function will search for the file on the server that is running the script calling this function.
== Usage ==
fileExists("foo.script", "foodnstuff"); // returns: false
fileExists("ftpcrack.exe"); // returns: true