https://prefect.io logo
Title
g

Guillaume G

09/28/2022, 4:05 PM
Hello Prefect, I try to use the SMB block, when I try to
get_directory
I got
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

Rob Freedy

09/29/2022, 2:29 PM
g

Guillaume G

09/30/2022, 8:41 AM
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

Rob Freedy

09/30/2022, 2:23 PM
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