Skip to content

Commit e9eb7bf

Browse files
committed
use console.log
1 parent 9ae7903 commit e9eb7bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ const fs = require("fs");
22

33
module.exports.handler = async (event) => {
44
const dir = event.dir || "/";
5-
console.log("listing files in dir: ", dir);
6-
return fs.readdirSync(dir).join("\n");
5+
console.log(`[${process.cwd}] listing files in dir: `, dir);
6+
console.log(fs.readdirSync(dir).join("\n"));
77
};

0 commit comments

Comments
 (0)