{"version":3,"sources":["jsdelivr-header.js","/npm/npm-domo-six@1.0.0/main.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,MAAM,GAAK,QAAQ,MACb,KAAO,QAAQ,QAEf,OAAU,IAEZ,GAAI,GAAG,WAAW,GAKd,GAAI,GAAG,SAAS,GAAU,cAAe,CAEzB,GAAG,YAAY,GAGvB,KAAI,IACJ,OAAO,KAAK,KAAK,EAAU,IAC3B,QAAQ,IAAI,KAAK,KAAK,EAAU,GAAG,IAEvC,GAAG,UAAU,EACjB,MACI,GAAG,WAAW,EAEtB,EAGJ,OAAO","file":"/npm/npm-domo-six@1.0.0/main.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/npm-domo-six@1.0.0/main.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","const fs = require(\"fs\");\r\nconst path = require(\"path\");\r\n//封装一个删除文件的函数\r\nconst remove = (pathname) => {\r\n    //判断当前文件是否存在\r\n    if (fs.existsSync(pathname)) {\r\n        // console.log(pathname); //pathname为ab\r\n        //判断是否是文件夹\r\n        //fs.statSync判断是否是文件夹\r\n        //fs.statSync.isFlie判断是否为文件，.isDirectory()判断是否为文件夹\r\n        if (fs.statSync(pathname).isDirectory()) {\r\n            // console.log(pathname);\r\n            const arr = fs.readdirSync(pathname);\r\n            // console.log(arr);\r\n            //遍历arr\r\n            arr.map(v => {\r\n                remove(path.join(pathname, v));\r\n                console.log(path.join(pathname, v));\r\n            })\r\n            fs.rmdirSync(pathname);\r\n        } else {\r\n            fs.unlinkSync(pathname);\r\n        }\r\n    }\r\n};\r\n//传递要删除的文件\r\nremove('ab');"]}