File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ namespace blt {
16
16
namespace fs {
17
17
18
18
using std::string;
19
+ using std::to_string;
19
20
using std::stringstream;
20
21
using std::vector;
21
22
using std::ifstream;
@@ -29,7 +30,6 @@ namespace blt {
29
30
vector<string> result;
30
31
31
32
DIR* directory = opendir (path.c_str ());
32
- log::log (" open dir: " + path, log::LOG_INFO);
33
33
34
34
if (directory)
35
35
{
@@ -80,7 +80,7 @@ namespace blt {
80
80
{
81
81
struct stat fileInfo;
82
82
83
- if (stat (path.c_str (), &fileInfo))
83
+ if (stat (path.c_str (), &fileInfo) == 0 )
84
84
{
85
85
return S_ISDIR (fileInfo.st_mode );
86
86
}
@@ -121,6 +121,7 @@ namespace blt {
121
121
parent = path.substr (0 , finalSlash);
122
122
}
123
123
124
+
124
125
if (path_is_dir (parent))
125
126
{
126
127
return true ;
You can’t perform that action at this time.
0 commit comments