Instead of e.errno == 17 we probably want to use something like "import errno; errno.EEXIST".
But the code looks wrong currently, it first tries to create the dir, then odes a os.access and tries to redo it again,
so this needs cleanup and a unittest.
Instead of e.errno == 17 we probably want to use something like "import errno; errno.EEXIST".
But the code looks wrong currently, it first tries to create the dir, then odes a os.access and tries to redo it again,
so this needs cleanup and a unittest.