Open MrYanQi2020 opened 4 years ago
And what is failing?
const smbclient = new SMB({
share: '\\\\172.17.6.3\\share',
domain: 'WORKGROUP',
username: 'smb',
password: '175623',
})
// Determines whether the delete target is an empty directory or a file
row.isDirectory === 'true'
? smbclient.unlink(row.path, function(err) {
if (err) throw err
console.log('file has been deleted')
})
: smbclient.rmdir(row.path, function(err) {
if (err) throw err
console.log('Directory deleted!')
})
What method is failing?
Hello, I also encountered the same situation. This is the case. After I listed the client link, I tried to call the delete directory and file rmdir and unlink api. The above situation occurred. I checked the relevant information but there was no result, help
ERROR info:
code: ![Uploading image.png…]()
@julien-f
Please provide detailed information.
A PR would fine too.