mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-11 05:06:51 +00:00
Other: Add v2 to module name
This commit is contained in:
@ -130,7 +130,7 @@ func createTestFolder(dirPath, dirType string) error {
|
||||
path := filepath.Join(dirPath, "testpath")
|
||||
switch dirType {
|
||||
case FileType:
|
||||
err = ioutil.WriteFile(path, []byte("This is a test"), 0640)
|
||||
err = ioutil.WriteFile(path, []byte("This is a test"), 0o640)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
@ -142,12 +142,12 @@ func createTestFolder(dirPath, dirType string) error {
|
||||
}
|
||||
|
||||
case DirType:
|
||||
err = os.MkdirAll(path, 0750)
|
||||
err = os.MkdirAll(path, 0o750)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
err = ioutil.WriteFile(filepath.Join(path, "another_file"), []byte("This is a test"), 0640)
|
||||
err = ioutil.WriteFile(filepath.Join(path, "another_file"), []byte("This is a test"), 0o640)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user