Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public boolean checkuserexist(String userid)
- {
- boolean returned = false;
- try {
- ftp.connect(ftp_host);
- ftp.enterLocalPassiveMode();
- ftp.login(ftp_username,ftp_password);
- String[] files = ftp.listNames();
- for(int i=0;i<files.length;i++)
- {
- String getFile = files[i].toString();
- if(getFile==userid)
- {
- returned=true;
- }
- }
- ftp.disconnect();
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- return returned;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement