Fix a mode of files/dir (report, log)

This commit is contained in:
Kota Kanbe
2016-09-14 17:47:12 +09:00
parent 3d68783b7f
commit fb70d1b2f0
4 changed files with 6 additions and 6 deletions

View File

@@ -39,7 +39,7 @@ func ensureResultDir(scannedAt time.Time) (path string, err error) {
timedir := scannedAt.Format(timeLayout)
wd, _ := os.Getwd()
dir := filepath.Join(wd, "results", timedir)
if err := os.MkdirAll(dir, 0755); err != nil {
if err := os.MkdirAll(dir, 0700); err != nil {
return "", fmt.Errorf("Failed to create dir: %s", err)
}