Tuan Anh Tran Tuan Anh Tran - 4 months ago 28
Node.js Question

Access file from network share path in nodejs

The path looks like this

\\10.1.10.11\Results\\filename.rtf


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

I've tried
smb2
(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

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

for Linux server, I used smbmount.

Comments