![]() Sometimes we wanted to rename only those files that match a specific pattern. #Python os rename pdf#įor example, renaming only pdf files or renaming files containing a particular year in their name. The pattern matching is done using the glob module. Write a pattern using wildcard characters.We can rename files that match a pattern using the following steps: – The glob module is used to find the files and folders whose names follow a specific pattern.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |