mirror of
https://github.com/schollz/croc.git
synced 2025-10-11 05:11:06 +02:00
Chmod new file based on the source file mode
This commit is contained in:
parent
8b9977a7c4
commit
24679d4e02
1 changed files with 4 additions and 0 deletions
|
@ -1386,6 +1386,10 @@ func (c *Client) recipientInitializeFile() (err error) {
|
|||
log.Error(errOpen)
|
||||
return errOpen
|
||||
}
|
||||
errChmod := os.Chmod(pathToFile, c.FilesToTransfer[c.FilesToTransferCurrentNum].Mode.Perm())
|
||||
if errChmod != nil {
|
||||
log.Error(errChmod)
|
||||
}
|
||||
truncate = true
|
||||
}
|
||||
if truncate {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue