0

guys my code is giving me a type error even though i ve converted required items to string

https://code.sololearn.com/c305lPCXeLru/?ref=app

4th Jun 2020, 5:59 AM
PRO
PRO - avatar
3 Antworten
+ 2
Try using raw strings. You may be having an issue do to spaces in the directory names etc. You should also be able to use forward slashes or backslashes. r'./american date files' r'E:/pranil/python/automate the boring shit/american date files' Otherwise, what is the exact error you're recieving when running the code?
4th Jun 2020, 6:33 AM
ChaoticDawg
ChaoticDawg - avatar
4th Jun 2020, 5:59 AM
PRO
PRO - avatar
0
ChaoticDawg this is the exact error TypeError: rename: src should be string, bytes or os.PathLike, not list
4th Jun 2020, 3:02 PM
PRO
PRO - avatar