Module "fs" Flashcards

(8 cards)

1
Q

Module “fs” promises

A

Allows to work with file system in promises format but not in callbacks

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

Module “fs” readFileSync

A

Synchronously read the file

readFileSync(path)

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

Module “fs” writeFileSync

A

Synchronously write the file

writeFileSync(path, {})

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

Module “fs” stat

A

Allow to read information about file

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

Module “fs” unlinkSync

A

Synchronously delete the file

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

Module “fs” unlink

A

Asynchronously delete the file

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

Module “fs” appendFile

A

Asynchronously add extra data to file without overwrighting it

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

Module “fs” rename

A

Asynchronously rename the file

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