#1196 koji.ensuredir: double-creating when directory is not normalized like "path/"
Closed: Fixed by tkopecek. Opened by julian8628.

when mount option for runroot is end with "/" like "/mnt/koji/foo/bar/"
because this mount point is never normalized, when invoking koji.ensuredir() on builder
os.mkdir() will be triggered twice as:
- os.mkdir('/mnt/koji/foo/bar')
- os.mkdir('/mnt/koji/foo/bar/')
then it will raise OSError which should not happen without race condition.

And, I think we should not raise an exception when directory exists and it is not a dir.


PR: #1197

Metadata Update from @julian8628:
- Issue tagged with: bug, easyfix

Metadata Update from @tkopecek:
- Custom field Size adjusted to None
- Issue set to the milestone: 1.19

Metadata Update from @tkopecek:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

Metadata Update from @dgregor:
- Issue assigned to julian8628

Metadata Update from @jcupova:
- Issue tagged with: testing-done

This issue has been migrated to Fedora Forge:
https://forge.fedoraproject.org/koji/koji/issues/1196

Please continue any further discussion there.

Metadata