node-fs-readfile Flashcards

1
Q

What is a directory?

A

File systems typically have directories (also called folders) which allow the user to group files into separate collections.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a relative file path?

A

A relative path refers to a location that is relative to the present working (current) directory.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is an absolute file path?

A

An absolute path is defined as specifying the location of a file or directory from the root directory, it is direct

A relative path describes the location of a file relative to the current (working) directory*. An absolute path describes the location from the root directory.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What module does Node.js include for manipulating the file system?

A

The fs module enables interacting with the file system in a way modeled on standard POSIX functions. fs module allows you to work with the file system and manipulate it

How well did you know this?
1
Not at all
2
3
4
5
Perfectly