Tuan Anh Tran Tuan Anh Tran - 1 year ago 159
Node.js Question

Access file from network share path in nodejs

The path looks like this


From my machine, i can access it just fine by pasting it to
box, enter username and password.

I've tried
(smb2) but the sample code just hangs and after awhile, I get
Error: read ECONNRESET

I need to make this works on both linux and windows.

Answer Source

I figure I might as well just mount it and access it like local file.

for Linux server, I used smbmount.