1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//! The layout of an oxen-server's sync dir: which entries at its top are namespaces, and which
//! directories inside a namespace are repositories.
use io;
use ;
use crateOXEN_HIDDEN_DIR;
use crateOxenError;
/// Directory at the top of the sync dir holding the name table's env.
pub const NAME_TABLE_DIR: &str = "name_table";
/// Entries at the top of the sync dir holding the server's own state rather than a namespace's
/// repositories. A directory named for one of these is not reported as a namespace, so a namespace
/// could not be seen under that name either.
const SERVER_OWNED_DIRS: & = &;
/// Whether the entry named `name` at the top of the sync dir is a namespace rather than the
/// server's own state.
pub
/// The namespace directories at the top of `sync_dir`, in path order.
/// The repository directories in `namespace_dir`, in path order.
/// The entries of `dir` that `keep` accepts, in path order.