Open ruikaka16 opened 4 months ago
const smbClient = new smb2({ client: { dialect: '3.1.1' }, share: '\\\\'+ip+'\\'+String(remotepath).substring(0,1)+'$', domain: 'workgroup', username: username, password:password }); smbClient.readdir((String(remotepath).substring(3)).replace(/\\/g, '\\\\') + "\\\\", function(err, files) { if (err) throw err; console.log(files.length); return files.length });
run my code returning the same error:"STATUS_USER_SESSION_DELETED ",i don't know how to fix it,but it run perfectly well before.Thanks for help
run my code returning the same error:"STATUS_USER_SESSION_DELETED ",i don't know how to fix it,but it run perfectly well before.Thanks for help