Relative paths

A relative path refers to the location of an object file or directory to another location. In this case, it is the location of the context directory—the current and working location where development is carried out:

import '../src/file';

In the preceding example, the directory of the resource file is considered the context directory. The resource file refers to the file that the import() statement, the require() statement, or the call to an external file occurs. 

In this case, the relative path is joined to the context directory path, which then produces an absolute path.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset