Forum Discussion

yliliy's avatar
yliliy
Occasional Contributor
14 years ago

how to check a file exist in unlix server from your local pc

Hi guys,

I got stuck on this, I need to check a file exist in server , or delete file from server or rename it, I am not able to make it.
the file is in server, and the groovy running in my local pc, any one have idea or hints, please share ..thanks ..

I already used
File file = new File("path")
if (file.exists()){}

how to connect to server ?