feat: Add 2, update 6 and remove 1 files
This commit is contained in:
@@ -67,13 +67,13 @@ int hash_handler(const CommandContext& ctx) {
|
||||
if (std::filesystem::is_directory(path))
|
||||
{
|
||||
// hash the directory recursively
|
||||
uint64_t hash = hash_directory_recursive(path.string());
|
||||
std::string hash = hash_directory_recursive(path.string());
|
||||
std::cout << hash << std::endl;
|
||||
}
|
||||
else
|
||||
{
|
||||
// hash the file
|
||||
uint64_t hash = hash_file(path.string());
|
||||
std::string hash = hash_file(path.string());
|
||||
std::cout << hash << std::endl;
|
||||
}
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user