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

Issue 3077: posix copydirectory implementation (Closed)

Created:
12 years, 3 months ago by Evan Martin
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Implement CopyDirectory() for the POSIX branch of file_util. This lets us pass some more base unit tests and at least one net test.

Patch Set 1 #

Patch Set 2 : review comments #

Patch Set 3 : remove an extra period #

Patch Set 4 : more review comments #

Patch Set 5 : arraysize #

Patch Set 6 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+106 lines, -8 lines) Patch
M base/file_util_posix.cc View 1 2 3 4 3 chunks +105 lines, -4 lines 1 comment Download
M base/file_util_unittest.cc View 2 chunks +0 lines, -3 lines 0 comments Download
M net/SConscript View 1 2 chunks +1 line, -1 line 0 comments Download

Messages

Total messages: 13 (0 generated)
Evan Martin
12 years, 3 months ago (2008-09-16 05:25:46 UTC) #1
Dean McNamee
http://codereview.chromium.org/3077/diff/1/2 File base/file_util_posix.cc (right): http://codereview.chromium.org/3077/diff/1/2#newcode113 Line 113: base::strlcpy(top_dir, from_path.c_str(), sizeof(top_dir)); You should use arraysize(), since ...
12 years, 3 months ago (2008-09-16 11:04:37 UTC) #2
Mark Mentovai
I think I like this better than the other one anyway, it looks OK but ...
12 years, 3 months ago (2008-09-16 13:59:37 UTC) #3
Erik does not do reviews
The same big comment I gave the other review applies here: we need to make ...
12 years, 3 months ago (2008-09-16 17:41:49 UTC) #4
Mark Mentovai
LG otherwise, and agree with Erik about nailing down the expected behavior a bit better. ...
12 years, 3 months ago (2008-09-16 19:22:38 UTC) #5
Mark Mentovai
http://codereview.chromium.org/3077/diff/1/2 File base/file_util_posix.cc (right): http://codereview.chromium.org/3077/diff/1/2#newcode124 Line 124: while (!error && (ent = fts_read(fts)) != NULL) ...
12 years, 3 months ago (2008-09-16 19:33:30 UTC) #6
Evan Martin
Updated. http://codereview.chromium.org/3077/diff/1/2 File base/file_util_posix.cc (right): http://codereview.chromium.org/3077/diff/1/2#newcode140 Line 140: if (mkdir(target_path.c_str(), 0777) != 0) { On ...
12 years, 3 months ago (2008-09-16 22:25:04 UTC) #7
Evan Martin
Ok, another update.
12 years, 3 months ago (2008-09-16 22:57:54 UTC) #8
Mark Mentovai
Very nice, I like. http://codereview.chromium.org/3077/diff/210/24 File base/file_util_posix.cc (right): http://codereview.chromium.org/3077/diff/210/24#newcode70 Line 70: arraysize(top_dir)) < utf8_path_string.size()) { ...
12 years, 3 months ago (2008-09-17 02:20:07 UTC) #9
Evan Martin
I am sad I got strlcpy wrong. Please look again.
12 years, 3 months ago (2008-09-17 18:12:33 UTC) #10
Evan Martin
ping.
12 years, 3 months ago (2008-09-18 17:56:28 UTC) #11
Mark Mentovai
LGTM
12 years, 3 months ago (2008-09-18 18:55:44 UTC) #12
Erik does not do reviews
12 years, 3 months ago (2008-09-18 19:25:18 UTC) #13
otherwise LGTM

http://codereview.chromium.org/3077/diff/38/218
File base/file_util_posix.cc (right):

http://codereview.chromium.org/3077/diff/38/218#newcode121
Line 121: // TODO(evanm): remove this once we're sure it's ok.
I'm not sure why we'd remove this.  I think the TODO should be to add this to
the windows version of the code once we're sure it's OK.

Powered by Google App Engine
This is Rietveld 408576698