S
S
Svyatoslav Khusamov2017-02-28 13:27:14
JavaScript
Svyatoslav Khusamov, 2017-02-28 13:27:14

How to access network file from Node.js?

How to access network file from Node.js?
The folder is here \\172.16.7.17\d\Work\
I'm trying to write to a file \\172.16.7.17\d\Work\GroupOrder(2).csv
And I get the error:
"errno":-4048,"code":" EPERM", operation not permitted, open \\\\172.16.7.17\\d\\Work\\GroupOrder(2).csv
Then I mounted the drive to Z:\Work
Trying to write to file Z:\Work\GroupOrder( 2).csv
I get an error:
errno":-4058,"code":"ENOENT", no such file or directory, open 'Z:\\Work\\GroupOrder(2)
.csv write.The
file is written to the local disk without problems.How
do you end up writing the file?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Svyatoslav Khusamov, 2017-02-28
@khusamov

Yustas Alexu Run the node as an administrator.

A
Aleksandr Salamatov, 2017-02-28
@ch1sel

https://www.npmjs.com/package/smb2

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question