When I try to remove a file from javascript using nsIFile.remove(), the above exception is thown. Before trying to remove, I am checking whether the file is writable or not using isWritable(), and if it is writable then only I am trying to remove the file.
When NS_ERROR_FILE_ACCESS_DENIED is thrown? I looked at the firefox source and found out that this is thrown when user doesn't have write permissions on the file he/she is trying to remove. In my case I have permissions(isWritable() is returning true). Is it possible that the file is opened for read/write elsewhere and the file descriptor is not properly closed or something else? PS: The platform I am working on is Windows XP. Thanks in advance, Rajendra Prasad Murakonda. _______________________________________________ dev-tech-xpcom mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-xpcom
