@Override public ArrayList<String> list(String path){
  ArrayList<String> fileNameList=new ArrayList<String>();
  DropboxAPI.Entry files=null;
  try {
    files=mDBApi.metadata(path,25000,null,true,null);
    for (    Entry e : files.contents) {
      fileNameList.add(e.fileName());
    }
  }
 catch (  DropboxException e) {
    e.printStackTrace();
  }
  return fileNameList;
}

@ Override public ArrayList < String > list ( String path ) { ArrayList < String > fileNameList = new ArrayList < String > ( ) ; DropboxAPI . Entry files = null ; try { files = mDBApi . metadata ( path , 25000 , null , true , null ) ; for ( Entry e : files . contents ) { fileNameList . add ( e . fileName ( ) ) ; } } catch ( DropboxException e ) { e . printStackTrace ( ) ; } return fileNameList ; }
returns an arraylist which contains the name of every file within given folder .
