FCF - Full Stack Javascript Framework
OpenSource is a full stack development framework designed to simplify the development of WEB projects of various complexity levels.
It is based on unique technologies that open up new opportunities in development approaches with NODEJS.
修订版 | 6dc2f6ffe94807739a0c458141cd4071fb756947 (tree) |
---|---|
时间 | 2022-08-01 06:43:02 |
作者 | ![]() |
Commiter | Vladimir Markin |
added compatibility for node 10
@@ -65,7 +65,10 @@ | ||
65 | 65 | }); |
66 | 66 | await addFSStruct("", tmpDir); |
67 | 67 | } catch (e) { |
68 | - await libUtil.promisify(libFS.rmdir)(tmpDir, { recursive: true, force: true }); | |
68 | + try { | |
69 | + await libUtil.promisify(libFS.rmdir)(tmpDir, { recursive: true, force: true }); | |
70 | + } catch(err){ | |
71 | + } | |
69 | 72 | throw e; |
70 | 73 | } |
71 | 74 |
@@ -91,7 +94,10 @@ | ||
91 | 94 | return a_id; |
92 | 95 | }) |
93 | 96 | .finally(async ()=>{ |
94 | - await libUtil.promisify(libFS.rmdir)(tmpDir, { recursive: true, force: true }); | |
97 | + try { | |
98 | + await libUtil.promisify(libFS.rmdir)(tmpDir, { recursive: true, force: true }); | |
99 | + } catch(err){ | |
100 | + } | |
95 | 101 | }) |
96 | 102 | |
97 | 103 | } |