midday-commander
Loading...
Searching...
No Matches
Symlink.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_SYMLINK_H
6#define MIDDAY_COMMANDER_SYMLINK_H
7
8#include <filesystem>
9
10#include "Entry.h"
11
15class Symlink : public Entry {
16public:
17 explicit Symlink(const 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
28private:
29 bool circular = false;
30};
31
32
33#endif //MIDDAY_COMMANDER_SYMLINK_H
Modifier
Used to modify Entry.print()
Definition: Modifier.h:11
An abstract class representing a general FileView entry.
Definition: Entry.h:15