sftpfs OpenFile perm

This commit is contained in:
lixz 2021-06-08 10:52:32 +08:00
parent 5dc5331f47
commit 5b44be244d
1 changed files with 2 additions and 1 deletions

View File

@ -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 {