Got it. Actually, the problem was simpler than what I thought: the
path is passed by my UI as something like
"file://home/tonikitoo/save/it/here/test.htm" , including the schema
("fille://" in this case), so it was failing at nsILocalFile instance
creation (following lines):
nsCOMPtr <nsILocalFile> file;
file = do_CreateInstance(NS_LOCAL_FILE_CONTRACTID);
file->InitWithNativePath(fileName);
file->Create(nsIFile::NORMAL_FILE_TYPE, 0644);
I just took out the schema from my fileName and it works fine. Is it
an expected behaviour ?
regards
--
--Antonio Gomes
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding