โ06-15-2021 09:22 AM
I have different files in my s3. Now I want to get the files which starts with cop_
โ06-15-2021 09:23 AM
You are referencing a FileInfo object when calling
.startswith()
and not a string.
The filename is a property of the
FileInfo
object, so this should work
filename.name.startswith('cop_ ')
should work.
never-displayed
Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections.
Click here to register and join today!
Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.