Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Unified Diff: appengine/gce-backend/agent/agent.py

Issue 2961653003: Replace os.mkdir with os.makedirs (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/gce-backend/agent/agent.py
diff --git a/appengine/gce-backend/agent/agent.py b/appengine/gce-backend/agent/agent.py
index 4b68ea29410d0fad86c553c747270e0850044b1a..7e661147989f5b5de72f5bd878f7e73d5161f735 100755
--- a/appengine/gce-backend/agent/agent.py
+++ b/appengine/gce-backend/agent/agent.py
@@ -187,7 +187,7 @@ class Agent(object):
path = os.path.join(self.LOGS_DIR, 'agent.%s.log' % time.time())
if not os.path.exists(self.LOGS_DIR):
- os.mkdir(self.LOGS_DIR)
+ os.makedirs(self.LOGS_DIR)
logger = logging.getLogger()
logger.setLevel(logging.DEBUG)
@@ -286,7 +286,7 @@ class Agent(object):
True if successful, False otherwise.
"""
if not os.path.exists(self.SWARMING_BOT_DIR):
- os.mkdir(self.SWARMING_BOT_DIR)
+ os.makedirs(self.SWARMING_BOT_DIR)
self.chown(self.user, self.SWARMING_BOT_DIR)
path = os.path.join(self.SWARMING_BOT_DIR, 'swarming_bot.zip')
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698