- Dec 22, 2023
-
-
Tobias Quathamer authored
-
- Dec 19, 2023
-
-
Tobias Quathamer authored
-
Maytham Alsudany authored
-
Maytham Alsudany authored
-
- Nov 24, 2023
-
-
Arash Payan authored
The TREECONNECT command requires a share path (\servername\sharename) as an argument, but when calling Mount() users typically just pass in the share name. When that happens, go-smb2 creates a share path using the IP address of the tcpConn that was passed to it and the share name, but this sometimes creates problems for servers that expect the original fully qualified domain name of the server in the server name component of the share path. To address this, this commit replaces the existing Dialer.Dial* methods with versions that are harder to use incorrectly. The new methods also require an address argument so when a full share path is not passed to Mount(), the address value from Dial* will be used as the servername in the share path. Fixes issue #18
-
- Nov 21, 2023
-
-
Arash Payan authored
Prior to this commit every context error returned by the library was wrapped in a custom struct called ContextError. As a result, checking cancellation errors returned from the library with errors.Is(err, ctx.Err()) would return false. This design decision was made before the existence of errors.Is(), but is no longer helpful. With this commit, any context errors are returned directly without embedding in a custom struct.
-
- Nov 06, 2023
-
-
Avi Deitcher authored
Signed-off-by: Avi Deitcher <avi@deitcher.net>
-
- Oct 07, 2023
-
-
Avi Deitcher authored
Signed-off-by: Avi Deitcher <avi@deitcher.net>
-
- Oct 03, 2023
-
-
Avi Deitcher authored
Signed-off-by: Avi Deitcher <avi@deitcher.net>
-
- Jun 15, 2023
-
-
Arash Payan authored
Add support to optionally mount a share with 'mapposix' or 'mapchars' character translation. To use it pass the appropriate option to 'Mount()`. For example: share, _ := c.Mount("shareName", smb2.WithMapPosix()) Share.Rename was also updated to behave like Go's os.Rename. Prior to this commit, Rename would return an error if a file already existed at the new path. Now, it overwrites the file instead.
-
- May 30, 2023
-
-
Arash Payan authored
Return 0 or the number of bytes that were read/written up until the error occurred. Fixes #6
-
- May 27, 2023
-
-
Arash Payan authored
Resolves #5
-
- May 25, 2023
-
-
Arash Payan authored
-
- May 19, 2023
-
-
Arash Payan authored
-
- May 05, 2023
-
-
Arash Payan authored
-
Arash Payan authored
-
- Jul 15, 2022
-
-
hirochachacha authored
Fix variable name in example.
-
- May 09, 2022
-
-
awrznc authored
-
- Mar 12, 2022
-
-
Hiroshi Ioka authored
-
Hiroshi Ioka authored
-
Hiroshi Ioka authored
-
Hiroshi Ioka authored
-
Hiroshi Ioka authored
-
Hiroshi Ioka authored
-
Hiroshi Ioka authored
-
Hiroshi Ioka authored
Fixes #53
-
Hiroshi Ioka authored
-
Hiroshi Ioka authored
-
Hiroshi Ioka authored
also fix some compatibility issues
-
Hiroshi Ioka authored
-
Hiroshi Ioka authored
-
Hiroshi Ioka authored
Fixes #61
-
- Feb 21, 2022
-
-
hirochachacha authored
normalize path string in MkdirAll & RemoveAll, fixes #56
-
- Dec 31, 2021
-
-
jxsl13 authored
-
- Apr 22, 2021
-
-
Hiroshi Ioka authored
Fixes #44
-
- Apr 21, 2021
-
-
Hiroshi Ioka authored
-
Hiroshi Ioka authored
-
Hiroshi Ioka authored
Updates #43
-
- Apr 19, 2021
-
-
Hiroshi Ioka authored
-