XPInstall API Reference:File Object
From MDC
[edit] File
Use the File object to manipulate local files and directories during the installation process.
[edit] Overview
The File object has methods for analyzing the file system and preparing it (as when new directories, program shortcuts, version comparisons, or deletions are required) for newly installed software packages. The File object works in conjunction with the Install object.