filmov
tv
NodeJS Tutorial: How To Delete a File in Node Js - Async & Sync | Remove file in Node.js |
Показать описание
#fs #nodejs #nodejstutorial #unlink #removefile #fsmodule #javascript #nodejstutorial #nodevideo #codewithsumit #ytboostrequest #node #nodejshindi
FS module official documentation.
The fs module enables interacting with the file system in a way modeled on standard POSIX functions.
All file system operations have synchronous, callback, and promise-based forms, and are accessible using both CommonJS syntax and ES6 Modules (ESM).
Promise-based operations return a promise that is fulfilled when the asynchronous operation is complete.
The callback form takes a completion callback function as its last argument and invokes the operation asynchronously. The arguments passed to the completion callback depend on the method, but the first argument is always reserved for an exception. If the operation is completed successfully, then the first argument is null or undefined.
The callback-based versions of the fs module APIs are preferable over the use of the promise APIs when maximal performance (both in terms of execution time and memory allocation) is required.
-~-~~-~~~-~~-~-
Please watch: "C Programming Tutorials | Operators in C | Unary, Binary and Ternary Operators in C | C Operators"
-~-~~-~~~-~~-~-
FS module official documentation.
The fs module enables interacting with the file system in a way modeled on standard POSIX functions.
All file system operations have synchronous, callback, and promise-based forms, and are accessible using both CommonJS syntax and ES6 Modules (ESM).
Promise-based operations return a promise that is fulfilled when the asynchronous operation is complete.
The callback form takes a completion callback function as its last argument and invokes the operation asynchronously. The arguments passed to the completion callback depend on the method, but the first argument is always reserved for an exception. If the operation is completed successfully, then the first argument is null or undefined.
The callback-based versions of the fs module APIs are preferable over the use of the promise APIs when maximal performance (both in terms of execution time and memory allocation) is required.
-~-~~-~~~-~~-~-
Please watch: "C Programming Tutorials | Operators in C | Unary, Binary and Ternary Operators in C | C Operators"
-~-~~-~~~-~~-~-