Use better permission masks for folders

This commit is contained in:
Zoe Roux 2024-01-19 21:54:51 +01:00
parent 2a491ded00
commit 995f50cc21
2 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ func (e *Extractor) RunExtractor(path string, sha string, subs *[]Subtitle) <-ch
attachment_path := fmt.Sprintf("%s/%s/att/", GetMetadataPath(), sha)
subs_path := fmt.Sprintf("%s/%s/sub/", GetMetadataPath(), sha)
os.MkdirAll(attachment_path, 0o644)
os.MkdirAll(subs_path, 0o644)
os.MkdirAll(subs_path, 0o755)
fmt.Printf("Extract subs and fonts for %s", path)
cmd := exec.Command(

View File

@ -97,7 +97,7 @@ func (ts *Stream) run(start int32) error {
segments_str := strings.Join(segments, ",")
outpath := ts.handle.getOutPath()
err := os.MkdirAll(filepath.Dir(outpath), 0o644)
err := os.MkdirAll(filepath.Dir(outpath), 0o755)
if err != nil {
return err
}