-
Notifications
You must be signed in to change notification settings - Fork 3
/
folder.h
56 lines (44 loc) · 975 Bytes
/
folder.h
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
49
50
51
52
53
54
55
56
/*
* This file is a part of the source code of "byenow" program.
*
* Copyright (c) 2020- Alexander Pankratov and IO Bureau SA.
* All rights reserved.
*
* The source code is distributed under the terms of 2-clause
* BSD license with the Commons Clause condition. See LICENSE
* file for details.
*/
#ifndef _ULTRA_FOLDER_H_
#define _ULTRA_FOLDER_H_
#include "libp/types.h"
#include "libp/api_error.h"
#include "libp/_scan_folder_nt.h"
//
struct folder;
typedef deque<folder *> folder_deq;
typedef vector<folder *> folder_vec;
//
struct fsi_item
{
wstring name;
fsi_info info;
fsi_item();
fsi_item(const wc_range & name, const fsi_info & info);
};
typedef vector<fsi_item> fsi_item_vec;
//
struct folder
{
folder * parent;
fsi_item self;
folder_vec folders;
fsi_item_vec files;
uint32_t items;
//
folder();
~folder();
wstring get_path() const;
void census(folder_vec & vec);
bool ready_for_delete() const;
};
#endif