Paths with spaces in Jython

asked 2019-07-26 11:25:23 -0600

Vss@2019 gravatar image

updated 2019-07-31 09:32:19 -0600

metadaddy gravatar image

When url contains space in the middle of the directory or the filename it is not able to execute it and not able to throw an any exception. It is getting success without any valid value. Same command we are able to get the expected output via Shell But not from Jython.

For Example : File Name will be like below

http://example.com/DIR 1/DIR 2/a bc.csv

I tried in below ways using Jython by replacing space with %20 or +. It doesn't work.

Is there any way to achieve this ?

edit retag flag offensive close merge delete

Comments

Can you give an example of the actual Jython code with the file name?

metadaddy gravatar imagemetadaddy ( 2019-07-31 09:33:17 -0600 )edit