filer/examples/test.html

34 lines
647 B
HTML
Raw Normal View History

2012-10-07 05:42:58 +00:00
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8" />
</head>
2012-10-11 06:20:58 +00:00
<body>
<div id="stdout"></div>
</body>
2012-10-07 05:42:58 +00:00
<script src="../lib/require.js"></script>
<script>
require.config({
baseUrl: "../lib",
paths: {
"src": "../src"
}
});
require(["src/filesystem"], function(IDBFS) {
2012-10-11 06:20:58 +00:00
IDBFS.mount("default", function(error, fs) {
fs.mkdir("/tmp", function(error) {
2012-10-11 18:58:36 +00:00
fs.mkdir("/tmp/0", function(error) {
fs.mkdir("/tmp/1", function(error) {
fs.rmdir("/tmp/0", function(error) {
fs.dump(document.getElementById("stdout"));
});
});
});
2012-10-11 06:20:58 +00:00
});
}, true);
2012-10-07 05:42:58 +00:00
});
</script>
</html>