Node:File and directory paths, Next:, Previous:Two modes of operation, Up:Getting Started



File and directory paths

Often, a file or a directory path is required on the command line. Sometimes the path will represent a file or a directory in the local copy of a website. Other times the path will represent a file or a directory on a server. Sometimes the path will be a complete path. Other times the path will be a relative path.

When a file or a directory path begins with the character /, WebPublish assumes that the path is a complete path. When a complete path is passed to WebPublish, WebPublish will use the path without modification.

A complete path is never used when specifying a file or a directory on a server. Furthermore, when a complete path is used to specify a file or a directory in the local copy of a website, the complete path must be to a file or a directory that is in the local copy of the account's website. Specifying a file or a directory that is not in the account's website will cause an error.

When a file or a directory path does not begin with the character /, WebPublish assumes that the path is a relative path. When a relative path is passed to WebPublish, WebPublish will resolve the path against the base address of the website. Either the base address of the local copy of a website, or the base address of the website on a server.