mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
Use better permission masks for folders
This commit is contained in:
parent
2a491ded00
commit
995f50cc21
@ -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(
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user