Paths with spaces in Jython

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

Vss@2019 gravatar image

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

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 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


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

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