NodeJS fs.readdir for network share or file: protocol

I am working on a project that requires reading the contents of a directory from a network share.

Is there a way to use fs.readdir () on a network share? I tried:

a) input directly to the shared folder

\\ 000.00.00.00 \ Example \ Images

b) setting the share as a disk and using the location of the disk

Z: \ Images

In both cases, fs could not find the directory.

Alternatively, are they any modules that can read the contents of a directory using the file: protocol? I tried: request, needle and SMB2 with no success.

+3
node.js remote-access fs


source to share


No one has answered this question yet

Check out similar questions:

1822
What's the difference between dependencies, devDependencies and peerDependencies in the npm package.json file?
1544
How can I upgrade NodeJS and NPM to the next versions?
1500
Writing Files in Node.js
1116
Am I doing the package-lock.json file generated by npm 5?
1045
Check synchronously if file / directory exists in Node.js
380
How do I upload a file using Node.js (no third party libraries involved)?
300
Node.js check if path is file or directory
239
node.js fs.readdir recursive directory search
214
nodejs get filename from absolute path?
0
Unable to connect to smb file server



All Articles
Loading...
X
Show
Funny
Dev
Pics