We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 48f9e1a commit 4d36f45Copy full SHA for 4d36f45
1 file changed
Lesson03/exercise_004/index.js
@@ -34,6 +34,7 @@ function handleStaticFile(pathname, response) {
34
return handleNotFound(response);
35
}
36
37
+ // Check if file exists and is readable
38
fs.access(fullPath, fs.constants.R_OK, (error) => {
39
if (error) {
40
console.error(`File is not readable: ${fullPath}`, error);
0 commit comments