Visit Mozilla.org

nsILocalFile:initWithNativePath

From MDC

« XPCOM API Reference

Contents

[edit] Summary

This method is used for setting the full path that this nsILocalFile references. [native character encoding variant]

 [noscript] void initWithNativePath(
   in ACString aFilePath
 );

[edit] Parameters

aFilePath
[in] A string that specifies a platform-specific, full path to a file or directory. This string must be encoded using the native character encoding.

[edit] Exceptions Thrown

NS_ERROR_FILE_UNRECOGNIZED_PATH
Indicates that aFilePath is not an absolute file path.

[edit] See Also

nsILocalFile, initWithPath