Success: [eclipse]: sh('ls myfile'). myfile [eclipse]: exists(myfile). yes. [eclipse]: sh('ls /home/user/workdir'). myfile [eclipse]: exists('/home/user/workdir'). yes. Fail: [eclipse]: sh('ls nofile'). nofile not found [eclipse]: exists(nofile). no. Error: exists(File). (Error 4). exists([file]). (Error 5).