0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/test/stats.js

15 lines
284 B
JavaScript

File.stat(ARGV[2], function (status, stats) {
if (status == 0) {
for (var i in stats) {
puts(i + " : " + stats[i]);
}
} else {
puts("error: " + File.strerror(status));
}
});
File.exists(ARGV[2], function (r) {
puts("file exists: " + r);
});