filelib.fileExists.js 175 B

1234567
  1. console.log("Check if file exists");
  2. requirelib("filelib");
  3. if (filelib.fileExists("user:/Desktop/test.txt")){
  4. sendResp("File Exists");
  5. }else{
  6. sendResp("File Not Exists");
  7. }