Programmer's Guide > Interfaces > ADocument interface > directory attribute
  
directory attribute
The directory associated with the document. For documents read from the file system, this is the directory part of the documentURI attribute, excluding the name, and expressed as a file system path not as a URI. If the document has no directory, for example, a new document created from a template and not yet saved, this is the null string. A document created by calling cloneNode on another Document node inherits this attribute.
This attribute is read-only. However, changing the documentURI attribute will also change the value of the directory attribute.
directory
Access
read-only
Returns
String