Search in sources :

Example 6 with OnFileFound

use of com.amaze.filemanager.utils.OnFileFound in project AmazeFileManager by TeamAmaze.

the class CloudUtil method listFiles.

/**
 * @deprecated use getCloudFiles()
 */
public static ArrayList<HybridFileParcelable> listFiles(String path, CloudStorage cloudStorage, OpenMode openMode) throws CloudPluginException {
    final ArrayList<HybridFileParcelable> baseFiles = new ArrayList<>();
    getCloudFiles(path, cloudStorage, openMode, new OnFileFound() {

        @Override
        public void onFileFound(HybridFileParcelable file) {
            baseFiles.add(file);
        }
    });
    return baseFiles;
}
Also used : HybridFileParcelable(com.amaze.filemanager.filesystem.HybridFileParcelable) ArrayList(java.util.ArrayList) OnFileFound(com.amaze.filemanager.utils.OnFileFound)

Aggregations

OnFileFound (com.amaze.filemanager.utils.OnFileFound)6 HybridFileParcelable (com.amaze.filemanager.filesystem.HybridFileParcelable)5 ArrayList (java.util.ArrayList)3 Pair (android.support.v4.util.Pair)1 LayoutElementParcelable (com.amaze.filemanager.adapters.data.LayoutElementParcelable)1 CloudPluginException (com.amaze.filemanager.exceptions.CloudPluginException)1 HybridFile (com.amaze.filemanager.filesystem.HybridFile)1 RootHelper (com.amaze.filemanager.filesystem.RootHelper)1 OnProgressUpdate (com.amaze.filemanager.utils.OnProgressUpdate)1 OpenMode (com.amaze.filemanager.utils.OpenMode)1 FileListSorter (com.amaze.filemanager.utils.files.FileListSorter)1 CloudStorage (com.cloudrail.si.interfaces.CloudStorage)1 AtomicInteger (java.util.concurrent.atomic.AtomicInteger)1 AtomicLong (java.util.concurrent.atomic.AtomicLong)1 SmbAuthException (jcifs.smb.SmbAuthException)1 SmbException (jcifs.smb.SmbException)1 SmbFile (jcifs.smb.SmbFile)1