diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-19 23:04:29 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-19 23:04:29 +0000 |
commit | 721c3f17a7fb36edaa17f607a11db9c82ba720ca (patch) | |
tree | c78e993a5474acdb2751c222db8787d7aa482301 /base/file_util_win.cc | |
parent | f785ad125747f9125c952c7e74f2154098ee15a9 (diff) | |
download | chromium_src-721c3f17a7fb36edaa17f607a11db9c82ba720ca.zip chromium_src-721c3f17a7fb36edaa17f607a11db9c82ba720ca.tar.gz chromium_src-721c3f17a7fb36edaa17f607a11db9c82ba720ca.tar.bz2 |
Port directory lister so test shell can view file directories.
Review URL: http://codereview.chromium.org/11437
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5725 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..b7b45b0 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()) |