diff --git a/validator/acts_validator/src/main/ets/pages/Player/PlayAudioList.ets b/validator/acts_validator/src/main/ets/pages/Player/PlayAudioList.ets index 8aec046bfae68650604af16bb4ffa88efd9dfeba..54d2bc93c09600f87792b2ca20838975b5635cf4 100644 --- a/validator/acts_validator/src/main/ets/pages/Player/PlayAudioList.ets +++ b/validator/acts_validator/src/main/ets/pages/Player/PlayAudioList.ets @@ -266,8 +266,9 @@ struct audioNew { } ClearText() { - fileio.rmdirSync(path1); - fileio.mkdirSync(path1); + fileio.unlinkSync(txtPath); + fileio.unlinkSync(ColorBackPath); + fileio.openSync(txtPath, 0o100 | 0o2002, 0o664); let fd = fileio.openSync(ColorBackPath, 0o102, 0o666); for (let i = 0; i < this.TestCaseList.length; i++) { let log = (this.TestCaseList[i].displayName + ';' + '#ff808080' + ';').toString(); diff --git a/validator/acts_validator/src/main/ets/pages/Player/PlayVideoList.ets b/validator/acts_validator/src/main/ets/pages/Player/PlayVideoList.ets index c319061e2129b19fb2552163cb0e471a0530c6ab..d192e744537186ea854789097b238a6cd750404c 100644 --- a/validator/acts_validator/src/main/ets/pages/Player/PlayVideoList.ets +++ b/validator/acts_validator/src/main/ets/pages/Player/PlayVideoList.ets @@ -267,8 +267,9 @@ struct videoNew { } ClearText() { - fileio.rmdirSync(path1); - fileio.mkdirSync(path1); + fileio.unlinkSync(txtPath); + fileio.unlinkSync(ColorBackPath); + fileio.openSync(txtPath, 0o100 | 0o2002, 0o664); let fd = fileio.openSync(ColorBackPath, 0o102, 0o666); for (let i = 0; i < this.TestCaseList.length; i++) { let log = (this.TestCaseList[i].displayName + ';' + '#ff808080' + ';').toString();