Skip to content

Commit 7694437

Browse files
author
ficeto
committed
add slash
1 parent 415d7d9 commit 7694437

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

main.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,10 @@ int addFiles(const char* dirname)
165165
continue;
166166
}
167167

168+
std::string filepath = "/";
169+
filepath += ent->d_name;
168170
std::cout << ent->d_name << std::endl;
169-
if (addFile(ent->d_name, fullpath.c_str()) != 0) {
171+
if (addFile((char*)filepath.c_str(), fullpath.c_str()) != 0) {
170172
std::cerr << "error adding file!" << std::endl;
171173
error = true;
172174
break;

0 commit comments

Comments
 (0)