2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 14:57:16 +08:00

refactor: 重构 tools.Chmod 函数

This commit is contained in:
耗子
2023-11-12 03:12:35 +08:00
parent 4c41ec036c
commit edd526d3b8
6 changed files with 18 additions and 16 deletions

View File

@@ -78,7 +78,7 @@ func (s *SystemHelperTestSuite) TestChmod() {
err := os.WriteFile(filePath, []byte("test data"), 0644)
s.Nil(err)
s.True(Chmod(filePath, 0755))
s.Nil(Chmod(filePath, 0755))
}
func (s *SystemHelperTestSuite) TestChown() {