Lines Matching full:path

31 const { sep } = require('path');
44 function rimraf(path, options, callback) {
47 _rimraf(path, options, function CB(err) {
52 return setTimeout(_rimraf, delay, path, options, CB);
65 function _rimraf(path, options, callback) {
68 lstat(path, (err, stats) => {
75 return fixWinEPERM(path, options, err, callback);
77 return _rmdir(path, options, err, callback);
80 unlink(path, (err) => {
85 return _rmdir(path, options, err, callback);
87 return epermHandler(path, options, err, callback);
97 function fixWinEPERM(path, options, originalErr, callback) {
98 chmod(path, 0o666, (err) => {
102 stat(path, (err, stats) => {
107 _rmdir(path, options, originalErr, callback);
109 unlink(path, callback);
115 function _rmdir(path, options, originalErr, callback) {
116 rmdir(path, (err) => {
119 return _rmchildren(path, options, callback);
129 function _rmchildren(path, options, callback) {
130 const pathBuf = Buffer.from(path);
139 return rmdir(path, callback);
157 rmdir(path, callback);
164 function rimrafPromises(path, options) {
166 rimraf(path, options, (err) => {
176 function rimrafSync(path, options) {
180 stats = lstatSync(path);
187 fixWinEPERMSync(path, options, err);
193 _rmdirSync(path, options, null);
195 _unlinkSync(path, options);
200 return epermHandlerSync(path, options, err);
204 _rmdirSync(path, options, err);
209 function _unlinkSync(path, options) {
214 return unlinkSync(path);
233 function _rmdirSync(path, options, originalErr) {
235 rmdirSync(path);
248 const pathBuf = Buffer.from(path);
260 return fs.rmdirSync(path);
283 function fixWinEPERMSync(path, options, originalErr) {
285 chmodSync(path, 0o666);
296 stats = statSync(path, { throwIfNoEntry: false });
304 _rmdirSync(path, options, originalErr);
306 _unlinkSync(path, options);