MCPcopy Create free account
hub / github.com/MultiMC/Launcher / copy

Class copy

launcher/FileSystem.h:47–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45bool ensureFolderPathExists(QString filenamepath);
46
47class copy
48{
49public:
50 copy(const QString & src, const QString & dst)
51 {
52 m_src = src;
53 m_dst = dst;
54 }
55 copy & followSymlinks(const bool follow)
56 {
57 m_followSymlinks = follow;
58 return *this;
59 }
60 copy & blacklist(const IPathMatcher * filter)
61 {
62 m_blacklist = filter;
63 return *this;
64 }
65 bool operator()()
66 {
67 return operator()(QString());
68 }
69
70private:
71 bool operator()(const QString &offset);
72
73private:
74 bool m_followSymlinks = true;
75 const IPathMatcher * m_blacklist = nullptr;
76 QDir m_src;
77 QDir m_dst;
78};
79
80/**
81 * Delete a folder recursively

Callers 11

ApplicationMethod · 0.85
operator()Method · 0.85
SaveIconFunction · 0.85
installIconsMethod · 0.85
installIconMethod · 0.85
installMethod · 0.85
replaceMethod · 0.85
installModMethod · 0.85
fmllibsFinishedMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected