Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,14 @@ func (c *Session) ListSharenames() ([]string, error) {
return r2.ShareNameList(), nil
}

// NegotiatedDialect returns negotiated dialect.
func (c *Session) NegotiatedDialect() uint16 {
if c.s != nil {
return c.s.dialect
}
return UnknownSMB
}

// Share represents a SMB tree connection with VFS interface.
type Share struct {
*treeConn
Expand Down