fs.moveSync is missing (Release v2.1.0)
See original GitHub issuesmash@1.0.0 /Users/ryancopley/Projects/smash
└─┬ fs-extra@2.0.0
├── graceful-fs@4.1.11
└── jsonfile@2.4.0
cat node_modules/fs-extra/lib/index.js
var assign = require('./util/assign')
var fse = {}
var gfs = require('graceful-fs')
// attach fs methods to fse
Object.keys(gfs).forEach(function (key) {
fse[key] = gfs[key]
})
var fs = fse
assign(fs, require('./copy'))
assign(fs, require('./copy-sync'))
assign(fs, require('./mkdirs'))
assign(fs, require('./remove'))
assign(fs, require('./json'))
assign(fs, require('./move')) < ---- NO MOVE SYNC
assign(fs, require('./empty'))
assign(fs, require('./ensure'))
assign(fs, require('./output'))
module.exports = fs
// maintain backwards compatibility for awhile
var jsonfile = {}
Object.defineProperty(jsonfile, 'spaces', {
get: function () {
return fs.spaces // found in ./json
},
set: function (val) {
fs.spaces = val
}
})
Is the npm package up-to-date? If not, could it please be? 😃
Thanks, Ryan
Issue Analytics
- State:
- Created 7 years ago
- Comments:11 (1 by maintainers)
Top Results From Across the Web
fs-extra | Yarn - Package Manager
fs -extra contains methods that aren't included in the vanilla Node.js fs package. Such as recursive mkdir, copy, and remove. fs, file, file...
Read more >Copy folder recursively in Node.js - javascript - Stack Overflow
To Move a folder or file, select overwrite accordingly try { fs.moveSync(srcDir, destDir, { overwrite: true|false }) console.log('success!
Read more >CHANGELOG.md - ATLAS Open Data
[#408](https://github.com/jprichardson/node-fs-extra/pull/408) 2.1.2 ... After five years of development, we finally have reach the 1.0.0 milestone!
Read more >Node.js: Extra Methods for The Fs Object Like Copy(), Remove()
What happened to walk() and walkSync() ? They were removed from fs-extra in v2.0.0. If you need the functionality, walk and ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
PR done: https://github.com/jprichardson/node-fs-extra/pull/386.
Thank you!