Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
capnproto
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
capnproto
Commits
19447ac5
Commit
19447ac5
authored
Dec 03, 2017
by
Kenton Varda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Windows: FindFirstFile globs had two backslashes before *, should have had one.
parent
0b6f50d6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
filesystem-disk-win32.c++
c++/src/kj/filesystem-disk-win32.c++
+2
-2
No files found.
c++/src/kj/filesystem-disk-win32.c++
View file @
19447ac5
...
...
@@ -149,7 +149,7 @@ static String dbgStr(ArrayPtr<const wchar_t> wstr) {
}
static
void
rmrfChildren
(
ArrayPtr
<
const
wchar_t
>
path
)
{
auto
glob
=
join16
(
path
,
L"
\\
*"
);
auto
glob
=
join16
(
path
,
L"*"
);
// According to Niall Douglas, on Windows, deleting all files in a directory requires repeatedly
// scanning the directory until it is found to be empty. I couldn't find an explanation why, but
...
...
@@ -558,7 +558,7 @@ public:
auto
list
(
bool
needTypes
,
Func
&&
func
)
->
Array
<
Decay
<
decltype
(
func
(
instance
<
StringPtr
>
(),
instance
<
FsNode
::
Type
>
()))
>>
{
PathPtr
path
=
KJ_ASSERT_NONNULL
(
dirPath
);
auto
glob
=
join16
(
path
.
forWin32Api
(
true
),
L"
\\
*"
);
auto
glob
=
join16
(
path
.
forWin32Api
(
true
),
L"*"
);
// TODO(perf): Use FindFileEx() with FindExInfoBasic? Not apparently supported on Vista.
// TODO(someday): Use NtQueryDirectoryObject() instead? It's "internal", but so much cleaner.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment