All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.eliux.mega.auth.MegaAuthFolder Maven / Gradle / Ivy

Go to download

Java client library that works on top of MEGAcmd to provide access to the services of Mega.nz

There is a newer version: 1.6.2
Show newest version
package com.github.eliux.mega.auth;

import com.github.eliux.mega.MegaSession;
import com.github.eliux.mega.cmd.MegaCmdLogin;

public class MegaAuthFolder extends MegaAuth {
    private final String folderPath;

    public MegaAuthFolder(String folderPath) {
        this.folderPath = folderPath;
    }

    public String getFolderPath() {
        return folderPath;
    }

    @Override
    public MegaSession login() {
        final MegaCmdLogin megaCmdLogin = new MegaCmdLogin(folderPath);
        megaCmdLogin.run();

        return new MegaSession(this);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy