source: frontend/node_modules/fs-extra/lib/remove/index.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 2 weeks ago

Fix frontend appearance

  • Property mode set to 100644
File size: 489 bytes
RevLine 
[9af201e]1'use strict'
2
3const fs = require('graceful-fs')
4const u = require('universalify').fromCallback
5const rimraf = require('./rimraf')
6
7function remove (path, callback) {
8 // Node 14.14.0+
9 if (fs.rm) return fs.rm(path, { recursive: true, force: true }, callback)
10 rimraf(path, callback)
11}
12
13function removeSync (path) {
14 // Node 14.14.0+
15 if (fs.rmSync) return fs.rmSync(path, { recursive: true, force: true })
16 rimraf.sync(path)
17}
18
19module.exports = {
20 remove: u(remove),
21 removeSync
22}
Note: See TracBrowser for help on using the repository browser.