I run sometimes on the following error when deleting a directory:
smbclient.rmdir(chunk_dir)
File "/usr/local/lib/python3.10/dist-packages/smbclient/_os.py", line 522, in rmdir
_delete(SMBDirectoryIO, path, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/smbclient/_os.py", line 1013, in _delete
AttributeError: 'function' object has no attribute 'FILE_TYPE'
If I print the raw_type parameter of the _delete function, I get in this situation a new function <function credit_wrapper.<locals>.new_func at 0x7fe0cb46eb90> instead of SMBDirectoryIO, and I don't understand why.
Hello,
Thanks for this library, it's a wonderful tool !
I run sometimes on the following error when deleting a directory:
If I print the
raw_type
parameter of the _delete function, I get in this situation a new function<function credit_wrapper.<locals>.new_func at 0x7fe0cb46eb90>
instead ofSMBDirectoryIO
, and I don't understand why.Do you have an idea why this occurs ?
Thanks !
Arnaud