You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: files/en-us/web/api/file_and_directory_entries_api/introduction/index.html
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ <h2 id="About_this_document">About this document</h2>
27
27
28
28
<h2id="Overview">Overview</h2>
29
29
30
-
<p>The File and Directory Entries API includes both <ahref="/en-US/docs/Web/API/File_and_Directory_Entries_API/Introduction#asynchronous_apis">asynchronous</a> and <ahref="/en-US/docs/Web/API/File_and_Directory_Entries_API/Introduction#synchronous_apis">synchronous</a> versions of the interfaces. The asynchronous API can be used in cases where you don't want an outstanding operation to block the UI. The synchronous API, on the other hand, allows for simpler programming model, but it must be used with <ahref="/en-US/docs/Web/API/Web_Workers_API/Using_web_workers">WebWorkers</a>. </p>
30
+
<p>The File and Directory Entries API includes both <ahref="#asynchronous_apis">asynchronous</a> and <ahref="#synchronous_apis">synchronous</a> versions of the interfaces. The asynchronous API can be used in cases where you don't want an outstanding operation to block the UI. The synchronous API, on the other hand, allows for simpler programming model, but it must be used with <ahref="/en-US/docs/Web/API/Web_Workers_API/Using_web_workers">WebWorkers</a>. </p>
31
31
32
32
<h3id="Usefulness_of_the_API">Usefulness of the API</h3>
33
33
@@ -49,7 +49,7 @@ <h3 id="The_File_and_Directory_Entries_API_and_other_storage_APIs">The File and
49
49
<ul>
50
50
<li>The File and Directory Entries API offers client-side storage for use cases that are not addressed by databases. If you want to have large mutable chunks of data, the File and Directory Entries API is a much more efficient storage solution than a database.</li>
51
51
<li>While Firefox supports blob storage for IndexedDB, Chrome currently does not (Chrome is still implementing support for blob storage in IndexedDB). If you are targeting Chrome for your app and you want to store blobs, the File and Directory Entries API and App Cache are your only choices. However, AppCache storage isn't locally mutable, and doesn't allow for fine-grained client-side management.</li>
52
-
<li>In Chrome, you can use the File and Directory Entries API with the <ahref="http://code.google.com/chrome/whitepapers/storage.html">Quota Management API</a>, which lets you ask for more storage and manage your storage quota. </li>
52
+
<li>In Chrome, you can use the File and Directory Entries API with the <ahref="https://code.google.com/chrome/whitepapers/storage.html">Quota Management API</a>, which lets you ask for more storage and manage your storage quota. </li>
<p>To prevent a web app from using up the entire disk, browsers might impose a quota for each app and allocate storage among web apps.</p>
120
120
121
-
<p>How storage space is granted or allocated and how you can manage storage are idiosyncratic to the browser, so you need to check the respective documentation of the browser. Google Chrome, for example, allows temporary storage beyond the 5 MB required in the specifications and supports the Quota Management API. To learn more about the Chrome-specific implementation, see <ahref="http://code.google.com/chrome/whitepapers/storage.html">Managing HTML5 Offline Storage</a>.</p>
121
+
<p>How storage space is granted or allocated and how you can manage storage are idiosyncratic to the browser, so you need to check the respective documentation of the browser. Google Chrome, for example, allows temporary storage beyond the 5 MB required in the specifications and supports the Quota Management API. To learn more about the Chrome-specific implementation, see <ahref="https://code.google.com/chrome/whitepapers/storage.html">Managing HTML5 Offline Storage</a>.</p>
122
122
123
123
<h3id="version">The File and Directory Entries API has asynchronous and synchronous versions</h3>
124
124
@@ -166,7 +166,7 @@ <h3 id="origin">The File and Directory Entries API adheres to the same-origin po
166
166
167
167
<p>An origin is the domain, application layer protocol, and port of a URL of the document where the script is being executed. Each origin has its own associated set of file systems.</p>
168
168
169
-
<p>The security boundary imposed on file system prevents applications from accessing data with a different origin. This protects private data by preventing access and deletion. For example, while an app or a page in <ahref="http://www.example.com/app/" rel="external">http://www.example.com/app/</a> can access files from <ahref="http://www.example.com/dir/" rel="external">http://www.example.com/dir/</a>, because they have the same origin, it cannot retrieve files from <ahref="http://www.example.com:8080/dir/" rel="external">http://www.example.com:8080/dir/</a> (different port) or <ahref="https://www.example.com/dir/" rel="external">https://www.example.com/dir/</a> (different protocol).</p>
169
+
<p>The security boundary imposed on file system prevents applications from accessing data with a different origin. This protects private data by preventing access and deletion. For example, while an app or a page in <ahref="https://www.example.com/app/" rel="external">http://www.example.com/app/</a> can access files from <ahref="https://www.example.com/dir/" rel="external">http://www.example.com/dir/</a>, because they have the same origin, it cannot retrieve files from <ahref="https://www.example.com:8080/dir/" rel="external">http://www.example.com:8080/dir/</a> (different port) or <ahref="https://www.example.com/dir/" rel="external">https://www.example.com/dir/</a> (different protocol).</p>
170
170
171
171
<h3id="execute">The File and Directory Entries API does not let you create and rename executable files</h3>
0 commit comments