mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-11-23 23:30:15 +00:00
replace unsupported rmSync function to unlinkSync function
Signed-off-by: herunlei <herunlei@huawei.com>
This commit is contained in:
parent
fb1c3b0121
commit
dea34fafa0
@ -56,7 +56,7 @@ const getPermissions = downloadPath => {
|
||||
|
||||
const convertJsonToDTS = (permissions, outputFilePath) => {
|
||||
if (fs.existsSync(outputFilePath)) {
|
||||
fs.rmSync(outputFilePath, { recursive: true, force: true });
|
||||
fs.unlinkSync(outputFilePath);
|
||||
}
|
||||
fs.appendFileSync(outputFilePath, copyRight, 'utf8');
|
||||
fs.appendFileSync(outputFilePath, typeHead, 'utf8');
|
||||
|
Loading…
Reference in New Issue
Block a user