commit | a4f9c17d4f2d03ab0e9936f0be878602513a86ea | [log] [tgz] |
---|---|---|
author | Josh Gao <jmgao@google.com> | Thu Jul 28 18:09:48 2016 -0700 |
committer | Josh Gao <jmgao@google.com> | Mon Aug 01 12:36:04 2016 -0700 |
tree | 4b2b4c82fcb54bad2182a81bfe6124ea5f2bdcb6 | |
parent | cde85bfe4478b2dcacae0775e236a31ca76275fb [diff] |
adb: fix stat on Windows. stat on Windows fails with ENOENT when passed a path with a trailing slash or backslash, regardless of whether the target is actually a directory. Emulate the correct POSIX behavior by stripping trailing path separators and then checking if the target is a directory if successful. Bug: http://b/30481559 Bug: https://code.google.com/p/android/issues/detail?id=214633 Change-Id: I1d398d19a9bce1ecb3fdc4aabc31aa98c82c3f93 Test: Relevant adb_tests pass on Linux and Windows 10.