Fix extraction directory perms mode

This commit is contained in:
Zoe Roux 2024-07-03 16:33:54 +00:00
parent 9fad5da0a4
commit a99317cce4
No known key found for this signature in database

View File

@ -26,7 +26,7 @@ func Extract(path string, sha string) (<-chan struct{}, error) {
}
attachment_path := fmt.Sprintf("%s/%s/att", Settings.Metadata, sha)
subs_path := fmt.Sprintf("%s/%s/sub", Settings.Metadata, sha)
os.MkdirAll(attachment_path, 0o644)
os.MkdirAll(attachment_path, 0o755)
os.MkdirAll(subs_path, 0o755)
// If there is no subtitles, there is nothing to extract (also fonts would be useless).