Set main folder permission

This commit is contained in:
Caleb Gardner
2023-04-17 10:38:44 -05:00
parent 7d16990277
commit 942e0f770f
+4
View File
@@ -292,6 +292,10 @@ func (f File) realExtract(folder string, op *ExtractionOptions) (err error) {
} }
return return
} }
if !op.IgnorePerm {
defer os.Chmod(extDir, f.Mode())
defer os.Chown(extDir, int(f.r.ids[f.i.UidInd]), int(f.r.ids[f.i.GidInd]))
}
} }
} }
switch { switch {