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

Issue 17101029: Treat empty directory properly in skimage. (Closed)

Created:
7 years, 6 months ago by scroggo
Modified:
7 years, 6 months ago
Reviewers:
epoger
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

Treat empty directory properly in skimage. Instead of treating an empty directory as a file that failed to decode, treat it as an empty directory. Add self tests to check for this. Builds upon from https://codereview.chromium.org/17294006, which was reverted. R=epoger@google.com Committed: https://code.google.com/p/skia/source/detail?r=9730

Patch Set 1 #

Patch Set 2 : Treat folders as folders #

Total comments: 1

Patch Set 3 : Create output directories as necessary. #

Total comments: 1

Patch Set 4 : Use README files to force directories to exist. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -12 lines) Patch
M tools/skimage_main.cpp View 1 1 chunk +11 lines, -12 lines 0 comments Download
A tools/tests/skimage/output-actual/empty-dir/README View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A tools/tests/skimage/output-actual/nonexistent-dir/README View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A tools/tests/skimage/output-expected/empty-dir/expectations.json View 1 chunk +9 lines, -0 lines 0 comments Download
A tools/tests/skimage/output-expected/nonexistent-dir/expectations.json View 1 chunk +9 lines, -0 lines 0 comments Download
M tools/tests/skimage_self_test.py View 3 2 chunks +21 lines, -0 lines 1 comment Download

Messages

Total messages: 6 (0 generated)
scroggo
Patch set 1 is identical to https://codereview.chromium.org/16866010
7 years, 6 months ago (2013-06-19 20:05:20 UTC) #1
scroggo
https://codereview.chromium.org/17101029/diff/3001/tools/skimage_main.cpp File tools/skimage_main.cpp (right): https://codereview.chromium.org/17101029/diff/3001/tools/skimage_main.cpp#newcode508 tools/skimage_main.cpp:508: if (sk_isdir(readPath)) { Patch set 2 asks the filesystem ...
7 years, 6 months ago (2013-06-19 20:10:45 UTC) #2
scroggo
https://codereview.chromium.org/17101029/diff/10001/tools/tests/skimage_self_test.py File tools/tests/skimage_self_test.py (right): https://codereview.chromium.org/17101029/diff/10001/tools/tests/skimage_self_test.py#newcode58 tools/tests/skimage_self_test.py:58: if not os.path.exists(expectations_dir): Patch set 3 creates the output ...
7 years, 6 months ago (2013-06-19 20:27:35 UTC) #3
scroggo
Ready for review at patch set 4. https://codereview.chromium.org/17101029/diff/19001/tools/tests/skimage_self_test.py File tools/tests/skimage_self_test.py (right): https://codereview.chromium.org/17101029/diff/19001/tools/tests/skimage_self_test.py#newcode55 tools/tests/skimage_self_test.py:55: expectations_path = ...
7 years, 6 months ago (2013-06-19 20:34:16 UTC) #4
epoger
lgtm
7 years, 6 months ago (2013-06-21 18:01:54 UTC) #5
scroggo
7 years, 6 months ago (2013-06-21 19:12:54 UTC) #6
Message was sent while issue was closed.
Committed patchset #4 manually as r9730 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698