Skip to content

Commit

Permalink
sftpfs OpenFile perm
Browse files Browse the repository at this point in the history
  • Loading branch information
lixiangzhong committed Jun 8, 2021
1 parent 5dc5331 commit 5b44be2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sftpfs/sftp.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ func (s Fs) OpenFile(name string, flag int, perm os.FileMode) (afero.File, error
if err != nil {
return nil, err
}
return &File{fd: sshfsFile}, nil
err = sshfsFile.Chmod(perm)
return &File{fd: sshfsFile}, err
}

func (s Fs) Remove(name string) error {
Expand Down

0 comments on commit 5b44be2

Please sign in to comment.