Forum Discussion

indraniria's avatar
indraniria
Contributor
3 years ago

If a network path contains $ sign, how to access that path using groovy?

As of now , I am mapping that network drive to a local drive in my system, list below:

File f = new File("A:\\Private\\Test\\")

 

But in actual network drive path I have a $ sign like, \\opscif\\$operation. If I write like below, I get error.

File f = new File("\\opscif\\$operation\\Test\\")