Hello Prefect, I try to use the SMB block, when I ...
# ask-community
g
Hello Prefect, I try to use the SMB block, when I try to
get_directory
I got
Copy code
Exception has occurred: TypeError
object of type 'PosixPath' has no len()
Do you know how to use SMB block ? I also get this issue https://github.com/PrefectHQ/prefect/issues/6971 when I try to
put_directory
Thanks 🙂
r
g
Hi, thank you for you answer, I use this code in my flow and the SMB block :
smb_block = SMB.load("datalake")
smb_block.get_directory("/test")
site-packages/fsspec/utils.py", line 379, in other_paths
assert len(paths) == len(path2)
TypeError: object of type 'PosixPath' has no len()
r
hmmm interesting. Would you mind adding that context to the existing Git issue that you linked above? This seems related but we will have our team look into it