Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.