| | |
| | | <span><input type="button" value="List Files" onclick="call_test_function('test_list_files')"></span> |
| | | <span><input type="button" value="Fetch from Cloud" onclick="fetch_from_cloud()"></span> |
| | | <span><input type="button" value="Push to Cloud" onclick="push_to_cloud()"></span> |
| | | <span><input type="button" value="Popuload local Cloud" onclick="populate_user_cloud()"></span> |
| | | </span> |
| | | <canvas class="emscripten" id="canvas" oncontextmenu="event.preventDefault()"></canvas> |
| | | </div> |
| | |
| | | Module.print('Sync to Remote', e); |
| | | }); |
| | | } |
| | | function populate_user_cloud() |
| | | { |
| | | FS.createFolder('/user_cloud', 'test', true, true); |
| | | FS.createFolder('/user_cloud/test', 'two', true, true); |
| | | FS.writeFile('/user_cloud/test.txt', 'This is a test'); |
| | | FS.writeFile('/user_cloud/test/file2.txt', 'This is another test'); |
| | | FS.writeFile('/user_cloud/test/two/file3.txt', 'This is another test'); |
| | | } |
| | | </script> |
| | | <script async type="text/javascript" src="TestApp.js"></script> |
| | | </body> |