aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib/src/vespa/searchlib/util/dirtraverse.h
blob: 91c8f3a2c5046788dceed1b5bbed55e7675c1624 (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 Vespa.ai. 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