Click or drag to resize

FileSpec Methods (Typed)

X#

The FileSpec type exposes the following members.

Functions
  NameDescription
Public methodCode exampleAppendToPath
Append a subdirectory to the end of this file specification's path.
Public methodCode exampleCopy(String, Logic)
Make a copy of the file represented by this file specification.
Public methodCode exampleCopy(FileSpec, Logic)
Make a copy of the file represented by this file specification.
Public methodDelete
Delete the file represented by this file specification.
Public methodError(Error)
Provide a method for handling error conditions raised during FileSpec processing. This is an event handler: it is automatically called by other methods; the developer does not normally need to call the error method, but might want to replace or amend it.
Public methodError(Error, Symbol)
Provide a method for handling error conditions raised during FileSpec processing. This is an event handler: it is automatically called by other methods; the developer does not normally need to call the error method, but might want to replace or amend it.
Public methodCode exampleFind
Search the disk for the file represented by this file specification, indicate if it exists, and if so, store its full path information in this file specification for future reference.
Public methodCode exampleMove(String, Logic)
Move the file represented by this file specification to a new location.
Public methodCode exampleMove(FileSpec, Logic)
Move the file represented by this file specification to a new location.
Public methodCode examplePathUp
Remove the last subdirectory from the end of this file specification's path.
Public methodCode exampleRename(String, Logic)
Rename the file represented by this file specification.
Public methodCode exampleRename(FileSpec, Logic)
Rename the file represented by this file specification.
Top
See Also