Skip to content

Commit

Permalink
Fix variable
Browse files Browse the repository at this point in the history
  • Loading branch information
eschan145 committed Jan 22, 2025
1 parent 7b0e3be commit e69f1e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ extern "C" {
}
}

DK_API uint64_t _dyknow_size(const std::string& directory) {
DK_API uint64_t dyknow_size(const std::string& directory) {
uint64_t total = 0;
WIN32_FIND_DATAA data;
HANDLE find = FindFirstFile((directory + "\\*").c_str(), &data);
Expand All @@ -105,7 +105,7 @@ DK_API uint64_t _dyknow_size(const std::string& directory) {
continue;
}

std::string full_path = FOLDER_PATH + "\\" + filename;
std::string full_path = directory + "\\" + filename;

if (data.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) {
// If it's a directory, recursively calculate its size
Expand Down

0 comments on commit e69f1e1

Please sign in to comment.