Skip to content
Snippets Groups Projects
  1. Dec 22, 2023
  2. Dec 19, 2023
  3. Nov 24, 2023
    • Arash Payan's avatar
      Updated Dialer.Dial* methods to fix Mount() related bugs and improve usability · f3ec8ae2
      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
  4. Nov 21, 2023
    • Arash Payan's avatar
      Remove ContextError and return context errors directly (#17) · fc258e36
      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.
  5. Nov 06, 2023
  6. Oct 07, 2023
  7. Oct 03, 2023
  8. Jun 15, 2023
    • Arash Payan's avatar
      Support mapping of reserved characters in file names (#9) · dc3b7f05
      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.
  9. May 30, 2023
  10. May 27, 2023
  11. May 25, 2023
  12. May 19, 2023
  13. May 05, 2023
  14. Jul 15, 2022
  15. May 09, 2022
  16. Mar 12, 2022
  17. Feb 21, 2022
  18. Dec 31, 2021
  19. Apr 22, 2021
  20. Apr 21, 2021
  21. Apr 19, 2021
Loading