Skip to main content
XPInstall API Reference:File Object:Methods
From MDC
[edit] Methods
- dirCreate
- Creates a new directory.
- dirGetParent
- Returns an object representing the parent directory.
- dirRemove
- Removes a directory.
- dirRename
- Renames the specified directory.
- copy
- Makes a copy of the specified file.
- diskSpaceAvailable
- Returns the amount of disk space available in bytes.
- exists
- Returns a boolean value indicating whether the specified file exists or not.
- execute
- Queues a file for executing as part of the installation process.
- isFile
- Returns a boolean value indicating whether an object is a file.
- modDate
- Returns a number representing the last modified date of the given file.
- modDateChanged
- Specifies whether the last modification on a file is older than a specified date
- move
- Moves a file from one location to another.
- remove
- Removes a file.
- rename
- Renames a file in place.
- size
- Returns the size of the file in bytes.
- windowsShortcut
- Creates a windows shortcut for a file.
- macAlias
- Creates a macintosh alias for a file.
- windowsGetShortName
- Returns the windows shortname of the path.
- windowsRegisterServer
- Registers DLLs with the registry.