File system rename in fs on Android | Node js on Android Using Termux

Опубликовано: 06 Октябрь 2024
на канале: Code with Coffee
16
0

To rename a file with the File System module, use the fs.rename() method.

The fs.rename() method renames the specified file
_________________________

Source Code Here 👇👇👇👇👇👇😆😆😆

const fs = require('fs');

fs.rename('myfile.txt', 'myRename.txt', function (err) {
if (err) throw err;
console.log('File Renamed!');
});
___________________________

Playlist

Bash Script:    • Bash Script  

Notification: https://youtube.com/playlist?list=
PLuCejQtGUOQS4pwMOQTnju5x-CpeBUjoJ

Recycler View:    • Recycler View  

Termux Tutorial:    • Termux Tutorial  

Android Studio Erorr Fix:    • Android Studio Erorr Fix  

AIDE-IDE-for-Android-Java/android studio Apps:    • AIDE-IDE-for-Android-Java/android stu...  

Learn Python For free Hindi/Urdu:    • Learn Python For free Hindi/Urdu  

If there is any problem, let us know in the comment box

Follow My Facebook Page:
  / 132319595615417  


Join My Facebook Group
https://www.facebook.com/groups/94732...