-
Notifications
You must be signed in to change notification settings - Fork 73
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
standard kwargs
not supported in copytree
#249
Comments
Hmm I can see |
If the underlying function that copies the files exposes |
I’m just saying what would the purpose be for it. I can understand doing read share access by default but allowing write or delete means the file could be changed as it is being read from. This would also only apply to the source file, the dest file would most likely not have have share flags because the contents are being changed. I’m just not sure there are any benefits to allow a user defined share_access here aside from changing the default on the source file. |
fair enough. I could make a PR that:
|
Sounds fair, keep in mind the Setting the share_access would be done on the |
Hello,
I tried to specify
buffering
andshare_access
insmbclient.shutil.copytree
like so:and it yields the following error
Looking at the source code, I can see why. Inside of
scandir
, whichcopytree
calls internally, these kwargs get forwarded toget_smb_tree()
.Can we add some additional logic to
pop
thesekwargs
when specified inside ofcopytree
, but use their values where appropriate? (such as incopyfile
)The text was updated successfully, but these errors were encountered: