midday-commander
Loading...
Searching...
No Matches
Folder.h
Go to the documentation of this file.
1//
2// Created by Vojtěch Pašek on 11.05.2023.
3//
4
5#ifndef MIDDAY_COMMANDER_FOLDER_H
6#define MIDDAY_COMMANDER_FOLDER_H
7
8#include <filesystem>
9
10#include "Entry.h"
11
15class Folder : public Entry {
16public:
17 explicit Folder(std::filesystem::path);
18 void print(Modifier) const override;
19
20 bool isFile() override;
21 bool isFolder() override;
22 bool isSymlink() override;
23
24 bool remove() override;
25 bool move(std::filesystem::path target) override;
26 bool copy(std::filesystem::path target) override;
27};
28
29
30#endif //MIDDAY_COMMANDER_FOLDER_H
Modifier
Used to modify Entry.print()
Definition: Modifier.h:11
An abstract class representing a general FileView entry.
Definition: Entry.h:15
Represents a folder in the program.
Definition: Folder.h:15
bool remove() override
Definition: Folder.cpp:39
bool isFile() override
Definition: Folder.cpp:58
bool isFolder() override
Definition: Folder.cpp:62
bool copy(std::filesystem::path target) override
Definition: Folder.cpp:44
bool isSymlink() override
Definition: Folder.cpp:66
bool move(std::filesystem::path target) override
Definition: Folder.cpp:53
void print(Modifier) const override
Definition: Folder.cpp:14