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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user