| 82 | bool ensureFolderPathExists(const QString folderPathName); |
| 83 | |
| 84 | class copy { |
| 85 | public: |
| 86 | copy(const QString& src, const QString& dst) |
| 87 | { |
| 88 | m_src.setPath(src); |
| 89 | m_dst.setPath(dst); |
| 90 | } |
| 91 | copy& followSymlinks(const bool follow) |
| 92 | { |
| 93 | m_followSymlinks = follow; |
| 94 | return *this; |
| 95 | } |
| 96 | copy& blacklist(const IPathMatcher* filter) |
| 97 | { |
| 98 | m_blacklist = filter; |
| 99 | return *this; |
| 100 | } |
| 101 | bool operator()() { return operator()(QString()); } |
| 102 | |
| 103 | private: |
| 104 | bool operator()(const QString& offset); |
| 105 | |
| 106 | private: |
| 107 | bool m_followSymlinks = true; |
| 108 | const IPathMatcher* m_blacklist = nullptr; |
| 109 | QDir m_src; |
| 110 | QDir m_dst; |
| 111 | }; |
| 112 | |
| 113 | /** |
| 114 | * Delete a folder recursively |
no outgoing calls
no test coverage detected