Node-SMB / marsaud-smb2

SMB2 Client
53 stars 46 forks source link

The request is not supported. #63

Open MrYanQi2020 opened 4 years ago

julien-f commented 4 years ago

Please provide detailed information.

A PR would fine too.

julien-f commented 4 years ago

And what is failing?

MrYanQi2020 commented 4 years ago
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!')
                    })
julien-f commented 4 years ago

What method is failing?

MrYanQi2020 commented 4 years ago

image

MrYanQi2020 commented 4 years ago

image

PachVerb commented 4 years ago

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: image

code: ![Uploading image.png…]()

@julien-f