Access windows shared folder


(Sérgio Marques) #1

Hi,

Is there a way to access a share folder in a windows server? I need to read some xls documents…

Thanks


(Norbert Melzer) #2

Have you tried simply opening it specifying the path of the file?


(Sérgio Marques) #3

No, i’m using linux and before i access a windows folder, i must authenticate with smb, so i thought i need to do the same using go. I’m going to try …


(Norbert Melzer) #4

From within go, I’m not sure, but google says there is https://github.com/stacktitan/smb, also there were a lot more hits for “golang smb client”.

But have you tried mounting the share and using golangs regular file handling?


(Sérgio Marques) #5

That is going to be my last resource, i want to do everything in go code but if not, why will try to mount the folder and access it


(Sérgio Marques) #6

Because it is very easy to do this with cifs, i’m not going to lose more time with a go solution. Thanks