question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

fs.moveSync is missing (Release v2.1.0)

See original GitHub issue
smash@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:closed
  • Created 7 years ago
  • Comments:11 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
RyanZimcommented, Mar 13, 2017
1reaction
RyanCopleycommented, Mar 15, 2017

Thank you!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found