1 min readNov 6, 2019
Thanks for writing this!
I set my path as ~/Downloads
and got the following error:
FileNotFoundError: [Errno 2] No such file or directory: '~/Downloads'
It seems Python (I’m running 3.7.4) doesn’t recognise the ~
in the path. The fix was to use os.path.expanduser('~/Downloads')
which worked as expected.