nazwa zmiany węzła

const fs = require('fs')

oldPath = './wiki/old.txt'
newPath = './wiki/new.txt'

// Sync
fs.renameSync(oldPath, newPath)

// Async
fs.rename(oldPath, newPath, (error) => {
  if (error) { console.log(error) }
  else { /* Success! Now do something else. */ }
})
stdafx-h