Advertisement
AnindyaBiswas

rename

May 16th, 2023
663
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var fs = require('fs');
  2.  
  3.  
  4. fs.rename("Text.txt", "textRenamed.txt", function(err){
  5.  
  6.     if(err) throw err;
  7.    
  8.     console.log("File renamed successfully!");
  9.  
  10.  
  11. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement