filer/examples/idbfs-test.html

32 lines
466 B
HTML

<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8" />
</head>
<body>
<div id="stdout"></div>
</body>
<script src="../lib/require.js"></script>
<script>
require.config({
baseUrl: "../lib",
paths: {
"src": "../src"
}
});
require(["src/fs"], function(IDBFS) {
IDBFS.mount("default", "FORMAT", function(error, fs) {
if(error) {
console.error(error);
return;
}
fs.mkdir("/tmp", function() {
});
});
});
</script>
</html>