简体   繁体   中英

Lambda Function - File Structre

Given the Lambda Function file structure below

Lambda File Structure

If this line is in my.js file: readFile("./html/product.html")

Where in the structure would the "html" folder be placed? What exactly is the "." in the "." in the path mean?

Currently the function can not find the product.html file and thats because the "html" folder does not exist. I want to know where to put the "html" folder so I can place the "product.html" file so the function can locate the file correctly

Would the "html" folder be placed at the same level as the "src" folder, or would the "html" folder be placed inside the "src" folder?

"." represents the current directory where the generatePage.js is present. "html" folder must be created inside the "src" folder.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM