Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PS E:\> python getDirSize02.py
- running on dir "."
- Traceback (most recent call last):
- File "getDirSize02.py", line 31, in <module>
- listContents();
- File "getDirSize02.py", line 23, in listContents
- f.write(c.encode('utf8'))
- TypeError: write() argument must be str, not bytes
- PS E:\>
Advertisement
Add Comment
Please, Sign In to add comment