SoFunction
Updated on 2025-03-03

Instructions for using the method

Method description:

Synchronous version of rmdir() .

The return value is null or undefined, which means the deletion is successful, otherwise an exception will be thrown.

grammar:

Copy the codeThe code is as follows:

(path)

Since this method belongs to the FS module, it is necessary to introduce the FS module before use (var fs= require("fs") )

Receive parameters:

path directory path

example:

Copy the codeThe code is as follows:

var fs = require('fs');
var deldir = ('deldir');
(deldir);

Source code:

Copy the codeThe code is as follows:

= function(path) {
  nullCheck(path);
  return (pathModule._makeLong(path));
};