blob: c26246e2596ed0c2e304d42309328b7ebd7f142d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include <cstdint>
#include <string>
namespace search {
/*
* Class used to get size of directory tree on disk.
*/
class DirectoryTraverse
{
private:
std::string _base_dir;
public:
uint64_t GetTreeSize(); // Returns size of directory in bytes
explicit DirectoryTraverse(const std::string& base_dir);
~DirectoryTraverse();
};
} // namespace search
|