4 Copyright (c) 2014 The Chromium Authors. All rights reserved.
5 Use of this source code is governed by a BSD-style license that can be
6 found in the LICENSE file.
9 <meta http-equiv="Pragma" content="no-cache">
10 <meta http-equiv="Expires" content="-1">
11 <title>{{title}}</title>
12 <script type="text/javascript" src="common.js"></script>
13 <script type ="text/javascript" src="example.js"></script>
17 <h2>Status: <code id="statusField">NO-STATUS</code></h2>
19 This example shows how to pass a Chrome FileSystem to the Native Client
20 module. The standard Pepper FileSystem (see examples/api/file_io) only
21 allows you to write to a sandboxed filesystem, but the Chrome FileSystem
22 allows you to write directly to a directory on the user's filesystem.
24 <p>The Chrome FileSystem is only supported for Chrome Apps.</p>
26 Click the button below and choose a directory. A new FileSystem will be
27 created which contains that directory. It will then be passed to the Native
28 Client module, where it will be used to write a file in that directory
29 called hello_from_nacl.txt.
32 <input type="button" id="choosedir" value="Choose Directory">
34 <div id="listener"></div>