Visit Mozilla.org

nsILocalFile:initWithPath

From MDC

« XPCOM API Reference

Contents

[edit] Summary

This method is used for setting the full path that this nsILocalFile references.

 void initWithPath(
   in AString aFilePath
 );

[edit] Parameters

aFilePath
[in] A string that specifies a platform-specific, full path to a file or directory.

[edit] Exceptions Thrown

NS_ERROR_FILE_UNRECOGNIZED_PATH
Indicates that aFilePath is not an absolute file path.

[edit] See Also

nsILocalFile, initWithNativePath