On 10/16/12 9:05 PM, Gavin Sharp wrote:> This is excellent - > https://developer.mozilla.org/en-US/docs/JavaScript_OS.File/OS.File_for_the_main_thread > is exactly the kind of API I've been wanting for a long time. I know > it took a lot of work to get there - thank you for your efforts. > > A couple of questions: > - some examples use file names without paths, like: |let promise = > OS.File.read("file.txt");|. Are these file names treated as > CWD-relative, or something else? This doesn't seem to be specified > well in the documentation.
Indeed, this is CWD relative. I will add a paragraph on that topic in the documentation. This is generally not very useful for platform or add-ons, but it can be quite useful for tests. > - I assume the file name arguments are all nsIFile.path-compatible > across platforms? Barring any bug, they should be. Cheers, David -- David Rajchenbach-Teller, PhD Performance Team, Mozilla
signature.asc
Description: OpenPGP digital signature
_______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform