Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The request is not supported. #63

Open
MrYanQi2020 opened this issue Jun 2, 2020 · 7 comments
Open

The request is not supported. #63

MrYanQi2020 opened this issue Jun 2, 2020 · 7 comments

Comments

@MrYanQi2020
Copy link

No description provided.

@julien-f
Copy link
Member

julien-f commented Jun 2, 2020

Please provide detailed information.

A PR would fine too.

@julien-f
Copy link
Member

julien-f commented Jun 5, 2020

And what is failing?

@MrYanQi2020
Copy link
Author

MrYanQi2020 commented Jun 5, 2020

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
Copy link
Member

julien-f commented Jun 5, 2020

What method is failing?

@MrYanQi2020
Copy link
Author

image

@MrYanQi2020
Copy link
Author

image

@PachVerb
Copy link

PachVerb commented Jun 6, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants