filelib.delete.js 319 B

12345678910111213
  1. /*
  2. File Walk. Recursive scan all files and subdirs under this root
  3. */
  4. console.log("Testing File Delete");
  5. requirelib("filelib");
  6. //Create a file
  7. if (filelib.writeFile("user:/Desktop/test.txt")){
  8. //Delete the file
  9. filelib.deleteFile("user:/Desktop/test.txt");
  10. }else{
  11. console.log("File create failed")
  12. }