2013-05-30 18:57:33 +00:00
|
|
|
<!DOCTYPE HTML>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div id="stdout"></div>
|
|
|
|
</body>
|
2013-12-14 19:42:00 +00:00
|
|
|
<script src="../dist/idbfs.js"></script>
|
2013-05-30 18:57:33 +00:00
|
|
|
<script>
|
2014-01-14 15:56:36 +00:00
|
|
|
window.Filer = Filer;
|
|
|
|
var fs = new Filer.FileSystem({
|
2013-12-14 19:42:00 +00:00
|
|
|
name: 'local',
|
|
|
|
flags: ['FORMAT']
|
|
|
|
});
|
2013-05-30 18:57:33 +00:00
|
|
|
|
2013-12-14 19:42:00 +00:00
|
|
|
//var buffer = new Uint8Array([1, 2, 3, 4, 5, 6, 7, 8]);
|
|
|
|
//console.log('buffer', buffer);
|
|
|
|
//var data = new Uint8Array(buffer.length);
|
2013-07-22 18:31:44 +00:00
|
|
|
|
2013-07-29 18:55:25 +00:00
|
|
|
try {
|
2013-12-14 19:42:00 +00:00
|
|
|
fs.stat('/', function(error, stats) {
|
2013-07-22 17:08:35 +00:00
|
|
|
if(error) throw error;
|
2013-12-14 19:42:00 +00:00
|
|
|
console.log('stats:', stats);
|
2013-07-12 15:11:05 +00:00
|
|
|
});
|
2013-07-29 18:55:25 +00:00
|
|
|
} catch(e) {
|
|
|
|
console.error(e);
|
|
|
|
}
|
2013-05-30 18:57:33 +00:00
|
|
|
|
|
|
|
</script>
|
|
|
|
</html>
|