More specific path checks (file vs directory).

This commit is contained in:
grossmj
2014-04-11 14:48:30 -06:00
parent 8020c2e99c
commit 96231e3f7f
8 changed files with 16 additions and 16 deletions

View File

@ -455,7 +455,7 @@ class HypervisorManager(object):
port = self.allocate_tcp_port()
# working_dir = os.path.join(self._working_dir, "instance-{}".format(port))
# if not os.path.exists(working_dir):
# if not os.path.isdir(working_dir):
# try:
# os.makedirs(working_dir)
# except OSError as e: