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

Unified Diff: webrtc/rtc_base/win32filesystem.cc

Issue 3006823002: In CreateFolder, delete code to recursively create parent directories. (Closed)
Patch Set: Created 3 years, 4 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 | « webrtc/rtc_base/win32filesystem.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/rtc_base/win32filesystem.cc
diff --git a/webrtc/rtc_base/win32filesystem.cc b/webrtc/rtc_base/win32filesystem.cc
index 45441855e9a1db1c722ee9ccfdca15fae516460f..879e86cf47ccfc5a935a75591fc3ea9be48dc8b8 100644
--- a/webrtc/rtc_base/win32filesystem.cc
+++ b/webrtc/rtc_base/win32filesystem.cc
@@ -51,15 +51,6 @@ bool Win32Filesystem::CreateFolder(const Pathname &pathname) {
return false;
}
- // Directory doesn't exist, look up one directory level
- if (!pathname.parent_folder().empty()) {
- Pathname parent(pathname);
- parent.SetFolder(pathname.parent_folder());
- if (!CreateFolder(parent)) {
- return false;
- }
- }
-
return (::CreateDirectory(path16.c_str(), nullptr) != 0);
}
« no previous file with comments | « webrtc/rtc_base/win32filesystem.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698