URLConnection FTP list files
URL url = new URL("ftp://user:pass@ftp.example.com/thefolder/"); URLConnection connection = url.openConnection(); ... // List files in folder... Using something like the above, I was wondering how I could grab a list of files within folder 'thefolder'? Hi guys, Following on from this original question, I have put together this simple FTP connection which is all working and looking good. It can see all files in the /live/conf/ location and copies them all to the local /conf/ location. The only issue is, it's copying the files but there's no content.They are all 0KB and empty! Can anyone see