#ifndef MEGAPATHCREATOR_H
#define MEGAPATHCREATOR_H

#include "megaapi.h"

#include <QObject>
#include <QStringList>

#include <memory>

//This class is used to create complex paths in MEGA
class MEGAPathCreator : QObject
{
    Q_OBJECT

public:
    MEGAPathCreator() = default;
    static std::shared_ptr<mega::MegaNode> mkDir(const QString& root,
                                                 const QString& path,
                                                 std::shared_ptr<mega::MegaError>& error);

private:
    static std::shared_ptr<mega::MegaNode> createFolder(mega::MegaNode* parentNode,
                                                        const QString& folderName,
                                                        std::shared_ptr<mega::MegaError>& error);
};

#endif // MEGAPATHCREATOR_H
