diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-20 22:30:13 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-20 22:30:13 +0000 |
commit | 13ef7c08cafb5d39c17a3b3e32f0ecf3a1107e2b (patch) | |
tree | 6bab505d34a79ee6be99702c657364052a850b72 /base/file_util_win.cc | |
parent | e4cdc665ff69c7ddff0ce5740592e735a108e0b7 (diff) | |
download | chromium_src-13ef7c08cafb5d39c17a3b3e32f0ecf3a1107e2b.zip chromium_src-13ef7c08cafb5d39c17a3b3e32f0ecf3a1107e2b.tar.gz chromium_src-13ef7c08cafb5d39c17a3b3e32f0ecf3a1107e2b.tar.bz2 |
Port directory lister to allow the linux and mac test shells to display file directories.
This is a revision of r5725. It doesn't break mac build.
Review URL: http://codereview.chromium.org/11507
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5792 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/file_util_win.cc')
-rw-r--r-- | base/file_util_win.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/base/file_util_win.cc b/base/file_util_win.cc index 459e3a8..fdfd6dd 100644 --- a/base/file_util_win.cc +++ b/base/file_util_win.cc @@ -625,6 +625,15 @@ FileEnumerator::~FileEnumerator() { FindClose(find_handle_); } +void FileEnumerator::GetFindInfo(FindInfo* info) { + DCHECK(info); + + if (!is_in_find_op_) + return; + + memcpy(info, &find_data_, sizeof(*info)); +} + std::wstring FileEnumerator::Next() { if (!is_in_find_op_) { if (pending_paths_.empty()) |