-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfile.cpp
More file actions
73 lines (56 loc) · 1.25 KB
/
Copy pathfile.cpp
File metadata and controls
73 lines (56 loc) · 1.25 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
//
// Created by Will Lane on 2/4/21.
//
#include "types.h"
#include <vector>
#include <filesystem>
#include <string>
namespace fs = std::filesystem;
fs::directory_entry File :: get_path() {
return this->path;
}
std::vector<FileMetaType> File :: get_meta_types() {
return this->meta_types;
}
std::string File :: get_group() {
return this->group;
}
std::string File :: get_user() {
return this->user;
}
std::string File :: get_modified() {
return this->modified;
}
std::string File :: get_created() {
return this->created;
}
std::string File :: get_size() {
return this->size;
}
std::string File :: get_perms() {
return this->perms;
}
void File :: set_path(fs::directory_entry p) {
this->path = std::move(p);
}
void File :: set_meta_types(std::vector<FileMetaType> m) {
this->meta_types = std::move(m);
}
void File :: set_group(std::string g) {
this->group = std::move(g);
}
void File :: set_user(std::string u) {
this->user = std::move(u);
}
void File :: set_modified(std::string m) {
this->modified = std::move(m);
}
void File :: set_created(std::string c) {
this->created = std::move(c);
}
void File :: set_size(std::string s) {
this->size = std::move(s);
}
void File :: set_perms(std::string p) {
this->perms = std::move(p);
}