win: scandir use 'ls' for formatting long strings
PR-URL: https://github.com/libuv/libuv/pull/75/files Reviewed-By: Bert Belder <bertbelder@gmail.com>
This commit is contained in:
parent
ccd9745a68
commit
796425205b
@ -732,9 +732,9 @@ void fs__readdir(uv_fs_t* req) {
|
|||||||
if (len == 0) {
|
if (len == 0) {
|
||||||
fmt = L"./*";
|
fmt = L"./*";
|
||||||
} else if (pathw[len - 1] == L'/' || pathw[len - 1] == L'\\') {
|
} else if (pathw[len - 1] == L'/' || pathw[len - 1] == L'\\') {
|
||||||
fmt = L"%s*";
|
fmt = L"%ls*";
|
||||||
} else {
|
} else {
|
||||||
fmt = L"%s\\*";
|
fmt = L"%ls\\*";
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Figure out whether path is a file or a directory. */
|
/* Figure out whether path is a file or a directory. */
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user