`currentDir` is never used again. I think this can be deleted (pylint would have caught this).