1
Good morning guys, I’m having trouble getting to a subdirectory on ftp, the name of one of the Ubdirectories has space, and with that I can not advance. I’m doing a project on Java. Could someone please help ?
ftp.changeWorkingDirectory("/Premium%202.0/Executaveis/Producao");
in this case when I copy the path %2 is inserted, then only ftp root is listed.
worked as follows following the idea of Andre Gusmao
ftp.changeWorkingDirectory("/Premium " + "2.0/Executaveis/Producao");
thus arrived in the production directory and listed the files within it.– Fabio Aragão
ftp.changeWorkingDirectory("/Premium 2.0/Executaveis/Producao");
@Fabioaragão, not only works using space?– Andre Gusmao
No, it gives error in netbeans: illegal scape Character and hence not saved, but accepting the netbeans option to fix, it does so and then saved and works by actually listing the files that are within this directory
– Fabio Aragão
@Fabioaragão, I edited my answer, now will not give compilation error.
– Andre Gusmao
did not work because the result is that it displays the files at the root and not in the directory in question
– Fabio Aragão