You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The sample code var fs = require('fs-extra'); fs.copy('explore.jpg', 'explore.fs.extra.jpg', function (err) { if (err) return console.error(err); console.log("success!"); });
The destination file modification time changes to current time.
Is it a way to preserve timestamp? like cp --preserve=timestamps
The sample code
var fs = require('fs-extra'); fs.copy('explore.jpg', 'explore.fs.extra.jpg', function (err) { if (err) return console.error(err); console.log("success!"); });
The destination file modification time changes to current time.
Is it a way to preserve timestamp? like
cp --preserve=timestamps
also please contribute to this question, it mentions about fs-extra
Ctrl+C/V under Gnome vs cp command under linux
The text was updated successfully, but these errors were encountered: