Hi,

Can someone explain the difference between nsIFile::Append and nsILocalFile::AppendRelativePath? From the IDL files...

nsIFile::Append()
This function is used for constructing a descendent of the
current nsIFile.
@param node
    A string which is intended to be a child node of the nsIFile.

nsILocalFile::AppendRelativePath()
Append a relative path to the current path of the nsILocalFile object.
@param relativeFilePath
    relativeFilePath is a native relative path. For security
    reasons, this cannot contain .. or cannot start with a
    directory separator.

Is the difference the security stuff mentioned, and the path in Append() can include ".." or start with a directory separator, while AppendRelativePath() cannot?

Regards,
Brodie
_______________________________________________
Mozilla-xpcom mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to