mirror of https://github.com/schollz/croc.git
Merge pull request #532 from stefins/chmod-file
Chmod new file based on the source file mode
This commit is contained in:
commit
faf64aadf1
|
@ -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…
Reference in New Issue