2012-10-07 05:42:58 +00:00
|
|
|
<!DOCTYPE HTML>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
</head>
|
|
|
|
<script src="../lib/require.js"></script>
|
|
|
|
<script>
|
|
|
|
require.config({
|
|
|
|
baseUrl: "../lib",
|
|
|
|
paths: {
|
|
|
|
"src": "../src"
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
require(["../../javascript-debug/debug", "src/filesystem"], function(debug, FileSystem) {
|
|
|
|
var fs = new FileSystem(undefined, true);
|
|
|
|
fs.then(function(fs) {
|
2012-10-09 17:40:25 +00:00
|
|
|
fs.mkdir("/tmp");
|
|
|
|
fs.stat("/tmp").then(function(result) {
|
|
|
|
console.log(result);
|
2012-10-08 05:53:12 +00:00
|
|
|
});
|
2012-10-07 05:42:58 +00:00
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
</html>
|