Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
spdlog
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
spdlog
Commits
fcc6b97f
Unverified
Commit
fcc6b97f
authored
Sep 15, 2019
by
Gabi Melman
Committed by
GitHub
Sep 15, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update utils.cpp
parent
adc4398c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
tests/utils.cpp
tests/utils.cpp
+2
-2
No files found.
tests/utils.cpp
View file @
fcc6b97f
...
...
@@ -72,7 +72,7 @@ bool ends_with(std::string const &value, std::string const &ending)
}
#ifdef _WIN32
//
source
: https://stackoverflow.com/a/37416569/192001
//
Based on
: https://stackoverflow.com/a/37416569/192001
std
::
size_t
count_files
(
const
std
::
string
&
folder
)
{
size_t
counter
=
0
;
...
...
@@ -80,7 +80,7 @@ std::size_t count_files(const std::string &folder)
HANDLE
hFind
=
INVALID_HANDLE_VALUE
;
// Start iterating over the files in the path directory.
hFind
=
::
FindFirstFileA
((
folder
+
"
\\
*
.*
"
).
c_str
(),
&
ffd
);
hFind
=
::
FindFirstFileA
((
folder
+
"
\\
*"
).
c_str
(),
&
ffd
);
if
(
hFind
!=
INVALID_HANDLE_VALUE
)
{
do
// Managed to locate and create an handle to that folder.
...
...
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