Detected 1 occurrence(s) of ‘[ht|f]tp[s]*:\/\/\w+\:.*\@\w*\.\w*’: URL url = new URL("ftp://user:pass@ftp.example.com/thefolder/"); URLConnection connection = url.openConnection(); ... // List files in folder... try { FTPClient ftp = new FTPClient(); ftp.connect("000.000.000.000"); ftp.login("USER", "PASSWORD"); ftp.enterLocalPassiveMode(); ft Source: http://pastebin.com/raw.php?i=HwbCBn9Q
↧