32 lines
564 B
HTML
32 lines
564 B
HTML
<!DOCTYPE HTML>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
</head>
|
|
<body>
|
|
<div id="stdout"></div>
|
|
</body>
|
|
<script src="../dist/idbfs.js"></script>
|
|
<script>
|
|
window.Filer = Filer;
|
|
var fs = new Filer.FileSystem({
|
|
name: 'local',
|
|
flags: ['FORMAT']
|
|
});
|
|
|
|
//var buffer = new Uint8Array([1, 2, 3, 4, 5, 6, 7, 8]);
|
|
//console.log('buffer', buffer);
|
|
//var data = new Uint8Array(buffer.length);
|
|
|
|
try {
|
|
fs.stat('/', function(error, stats) {
|
|
if(error) throw error;
|
|
console.log('stats:', stats);
|
|
});
|
|
} catch(e) {
|
|
console.error(e);
|
|
}
|
|
|
|
</script>
|
|
</html>
|