update to answer `November 2024, Python3`: for multi-level pathnames there should be a small fixup at line #61:
- print(mypath + '/' + ''.join(map(str, filenamepath))) + print(mypath + '/' + '/'.join(map(str, filenamepath)))