// Path: app/src/main/java/com/architjn/audiobook/bean/Folder.java
// public class Folder {
//     private final String absolutePath;
//     private final String name;
// 
//     public Folder(String absolutePath, String name) {
//         this.absolutePath = absolutePath;
//         this.name = name;
//     }
// 
//     public String getAbsolutePath() {
//         return absolutePath;
//     }
// 
//     public String getName() {
//         return name;
//     }
// }
// 
// Path: app/src/main/java/com/architjn/audiobook/interfaces/IFolderChooserPresenter.java
// public interface IFolderChooserPresenter {
//     void foldersLoaded(String currFolder, ArrayList<Folder> folders);
// }


import android.os.Environment;
import com.architjn.audiobook.bean.Folder;
import com.architjn.audiobook.interfaces.IFolderChooserPresenter;
import java.io.File;
import java.util.ArrayList;
import java.util.Arrays;
package com.architjn.audiobook.interactor;




/**
 * Created by HP on 23-07-2017.
 */

public class FolderChooserInteractor {
    private IFolderChooserPresenter presenter;

    public FolderChooserInteractor(IFolderChooserPresenter presenter) {
        this.presenter = presenter;
    }

    public void loadFolders(String path) {
// Path: app/src/main/java/com/architjn/audiobook/bean/Folder.java
// public class Folder {
//     private final String absolutePath;
//     private final String name;
// 
//     public Folder(String absolutePath, String name) {
//         this.absolutePath = absolutePath;
//         this.name = name;
//     }
// 
//     public String getAbsolutePath() {
//         return absolutePath;
//     }
// 
//     public String getName() {
//         return name;
//     }
// }
// 
// Path: app/src/main/java/com/architjn/audiobook/interfaces/IFolderChooserPresenter.java
// public interface IFolderChooserPresenter {
//     void foldersLoaded(String currFolder, ArrayList<Folder> folders);
// }


// Path: app/src/main/java/com/architjn/audiobook/interactor/FolderChooserInteractor.java
import android.os.Environment;
import com.architjn.audiobook.bean.Folder;
import com.architjn.audiobook.interfaces.IFolderChooserPresenter;
import java.io.File;
import java.util.ArrayList;
import java.util.Arrays;

package com.architjn.audiobook.interactor;




/**
 * Created by HP on 23-07-2017.
 */

public class FolderChooserInteractor {
    private IFolderChooserPresenter presenter;

    public FolderChooserInteractor(IFolderChooserPresenter presenter) {
        this.presenter = presenter;
    }

    public void loadFolders(String path) {
        ArrayList<Folder> folders = new ArrayList<>();