{"json_modified": "2016-01-28T22:49:16.259048", "slug": "Mozilla/JavaScript_code_modules/OSFile.jsm/OS.Fil_f\u00f6r_main_thread", "tags": [], "locale": "sv-SE", "title": "OS.File for the main thread", "translations": [{"title": "OS.File for the main thread", "url": "/en-US/docs/Mozilla/JavaScript_code_modules/OSFile.jsm/OS.File_for_the_main_thread", "tags": ["Guide", "guide", "Method", "JavaScript"], "summary": "This page details how to use File I/O from the main thread. For other uses of OS.File, please see the corresponding page.", "localization_tags": [], "locale": "en-US", "last_edit": "2016-01-24T07:44:07", "review_tags": []}], "modified": "2016-01-28T22:49:15", "label": "OS.File for the main thread", "localization_tags": ["inprogress"], "url": "/sv-SE/docs/Mozilla/JavaScript_code_modules/OSFile.jsm/OS.Fil_f%C3%B6r_main_thread", "last_edit": "2016-01-28T22:49:10", "summary": "Denna Sida visa detaljer om hur man anv\u00e4nder File I/O fr\u00e5n main thread. F\u00f6r andra anv\u00e4ndningsomr\u00e5de av File.I/O bes\u00f6k\u00a0the corresponding page.", "sections": [{"id": "Anv\u00e4nda_OS.File_fr\u00e5n_main_thread", "title": "Anv\u00e4nda OS.File fr\u00e5n main thread"}, {"id": "Promises", "title": "Promises"}, {"id": "Exempel_L\u00e4s_ineh\u00e5llet_av_filen_som_text", "title": "Exempel: L\u00e4s ineh\u00e5llet\u00a0av\u00a0filen som\u00a0text"}, {"id": "Exempel_Skriv_en_str\u00e4ng_till_fil", "title": "Exempel: Skriv en\u00a0str\u00e4ng\u00a0 till\u00a0fil"}, {"id": "Example_Rename_a_file", "title": "Example: Rename a file"}, {"id": "Example_Copy_a_file", "title": "Example: Copy a file"}, {"id": "Example_Path_manipulation", "title": "Example: Path manipulation"}, {"id": "Example_Determine_if_a_file_is_a_directory", "title": "Example: Determine if a file is a directory"}, {"id": "Example_copy_a_file_by_chunks", "title": "Example: copy a file by chunks"}, {"id": "Example_Save_Canvas_to_Disk", "title": "Example: Save Canvas to Disk"}, {"id": "Example_Append_to_File", "title": "Example: Append to File"}, {"id": "Global_object_OS.File", "title": "Global object OS.File"}, {"id": "Method_overview", "title": "Method overview"}, {"id": "Methods", "title": "Methods"}, {"id": "OS.File.open()", "title": "OS.File.open()"}, {"id": "Arguments", "title": "Arguments"}, {"id": "Promise_resolves_to", "title": "Promise resolves to"}, {"id": "Example_of_opening_file_and_keeping_it_locked", "title": "Example of opening file and keeping it locked"}, {"id": "OS.File.openUnique()", "title": "OS.File.openUnique()"}, {"id": "Arguments_2", "title": "Arguments"}, {"id": "Promise_resolves_to_2", "title": "Promise resolves to"}, {"id": "Promise_can_be_rejected_with", "title": "Promise can be rejected with"}, {"id": "OS.File.copy()", "title": "OS.File.copy()"}, {"id": "Arguments_3", "title": "Arguments"}, {"id": "Promise_can_be_rejected_with_2", "title": "Promise can be rejected with"}, {"id": "OS.File.exists()", "title": "OS.File.exists()"}, {"id": "Arguments_4", "title": "Arguments"}, {"id": "Promise_resolves_to_3", "title": "Promise resolves to"}, {"id": "OS.File.getCurrentDirectory()", "title": "OS.File.getCurrentDirectory()"}, {"id": "Promise_resolves_to_4", "title": "Promise resolves to"}, {"id": "OS.File.makeDir()", "title": "OS.File.makeDir()"}, {"id": "Arguments_5", "title": "Arguments"}, {"id": "OS.File.move()", "title": "OS.File.move()"}, {"id": "Arguments_6", "title": null}, {"id": "Promise_can_be_rejected_with_3", "title": "Promise can be rejected with"}, {"id": "OS.File.read()", "title": "OS.File.read()"}, {"id": "Arguments_7", "title": "Arguments"}, {"id": "Promise_resolves_to_5", "title": "Promise resolves to"}, {"id": "Promise_can_be_rejected_with_4", "title": "Promise can be rejected with"}, {"id": "Arguments_8", "title": "Arguments"}, {"id": "OS.File.remove()", "title": "OS.File.remove()"}, {"id": "Arguments_9", "title": "Arguments"}, {"id": "Promise_can_be_rejected_with_5", "title": "Promise can be rejected with"}, {"id": "OS.File.removeEmptyDir()", "title": "OS.File.removeEmptyDir()"}, {"id": "Arguments_10", "title": "Arguments"}, {"id": "Promise_can_be_rejected_with_6", "title": "Promise can be rejected with"}, {"id": "OS.File.removeDir()", "title": "OS.File.removeDir()"}, {"id": "Arguments_11", "title": "Arguments"}, {"id": "Promise_can_be_rejected_with_7", "title": "Promise can be rejected with"}, {"id": "OS.File.setCurrentDirectory()", "title": "OS.File.setCurrentDirectory()"}, {"id": "Arguments_12", "title": "Arguments"}, {"id": "Promise_can_be_rejected_with_8", "title": "Promise can be rejected with"}, {"id": "OS.File.setDates()", "title": "OS.File.setDates()"}, {"id": "Arguments_13", "title": "Arguments"}, {"id": "Promise_can_be_rejected_with_9", "title": "Promise can be rejected with"}, {"id": "OS.File.stat()", "title": "OS.File.stat()"}, {"id": "Arguments_14", "title": "Arguments"}, {"id": "Promise_resolves_to_6", "title": "Promise resolves to"}, {"id": "Promise_can_be_rejected_with_10", "title": "Promise can be rejected with"}, {"id": "OS.File.unixSymLink()", "title": "OS.File.unixSymLink()"}, {"id": "Arguments_15", "title": "Arguments"}, {"id": "Promise_resolves_to_7", "title": "Promise resolves to"}, {"id": "Promise_can_be_rejected_with_11", "title": "Promise can be rejected with"}, {"id": "OS.File.writeAtomic()", "title": "OS.File.writeAtomic()"}, {"id": "Arguments_16", "title": "Arguments"}, {"id": "Promise_can_be_rejected_with_12", "title": "Promise can be rejected with"}, {"id": "Instances_of_OS.File", "title": "Instances of OS.File"}, {"id": "Methods_overview", "title": "Methods overview"}, {"id": "Methods_2", "title": "Methods"}, {"id": "close()", "title": "close()"}, {"id": "flush()", "title": "flush()"}, {"id": "getPosition()", "title": null}, {"id": "Promise_resolves_to_8", "title": "Promise resolves to"}, {"id": "Promise_can_be_rejected_with_13", "title": "Promise can be rejected with"}, {"id": "read()", "title": "read()"}, {"id": "Arguments_17", "title": "Arguments"}, {"id": "Promise_resolves_to_9", "title": "Promise resolves to"}, {"id": "Promise_can_be_rejected_with_14", "title": "Promise can be rejected with"}, {"id": "setDates()", "title": "setDates()"}, {"id": "Arguments_18", "title": "Arguments"}, {"id": "Promise_can_be_rejected_with_15", "title": "Promise can be rejected with"}, {"id": "setPosition()", "title": "setPosition()"}, {"id": "Arguments_19", "title": "Arguments"}, {"id": "Promise_can_be_rejected_with_16", "title": "Promise can be rejected with"}, {"id": "stat()", "title": "stat()"}, {"id": "Promise_resolves_to_10", "title": "Promise resolves to"}, {"id": "Promise_can_be_rejected_with_17", "title": "Promise can be rejected with"}, {"id": "write()", "title": "write()"}, {"id": "Arguments_20", "title": "Arguments"}, {"id": "Promise_resolves_to_11", "title": "Promise resolves to"}, {"id": "Promise_can_be_rejected_with_18", "title": "Promise can be rejected with"}], "id": 173585, "review_tags": []}