mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2025-09-15 18:57:01 +00:00
add file info to files cp into container
This commit is contained in:
parent
e3ad34295b
commit
41dabfd633
1 changed files with 2 additions and 0 deletions
|
@ -352,6 +352,8 @@ func (cr *containerReference) copyDir(dstPath string, srcPath string) common.Exe
|
|||
|
||||
// update the name to correctly reflect the desired destination when untaring
|
||||
header.Name = strings.TrimPrefix(file, srcPrefix)
|
||||
header.Mode = int64(fi.Mode())
|
||||
header.ModTime = fi.ModTime()
|
||||
|
||||
// write the header
|
||||
if err := tw.WriteHeader(header); err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue