TheProfosist

Directory Listing with size (no sub folders) via Python 12

Jul 1st, 2018
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. PS E:\> python getDirSize05.py
  2. running on dir "."
  3. Traceback (most recent call last):
  4.   File "getDirSize05.py", line 31, in <module>
  5.     listContents();
  6.   File "getDirSize05.py", line 24, in listContents
  7.     f.write(', ')
  8. TypeError: a bytes-like object is required, not 'str'
Advertisement
Add Comment
Please, Sign In to add comment