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.
source to share
No one has answered this question yet
Check out similar questions: