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.

Would you like to have moveSync just like copy and copySync? Thanks 😄

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:18 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
jprichardsoncommented, Mar 6, 2017

The undocumented shouldMkdirp option for move().

Agreed, I don’t know why a person wouldn’t want it.

2reactions
manidloucommented, Nov 6, 2016

Hey guys, I’ve been using the fs-extra for a while and wanted to thank you all for this great and reliable module. In the meantime, I’ve been reading the source code for the past few days and if you don’t mind, I’d like to help improve the fs-extra as much as I can, and please I want you to correct me wherever I am wrong.

Isn’t true that the move functionality is essentially copying the src to dest and removing the src?

Regarding the moveSync functionality, the easiest solution that I’ve found is basically using nothing but combination of the fs-extra’s own copySync and removeSync.

I’ve tried with this,

const cpSync = require('../copy-sync').copySync
const rmSync = require('../remove').removeSync

function mvSync (source, dest, options) {
  cpSync(source, dest, options)
  rmSync(source)
}

and I tested for various cases for both file and directory and got the expected results.

Read more comments on GitHub >

github_iconTop Results From Across the Web

node-fs-extra/move-sync.md at master - GitHub
moveSync (src, dest[, options]). Moves a file or directory, even across devices. src <String>; dest <String> Note: When src is a file, dest...
Read more >
Using a Move Sync Command
You can put MOVE/SYNC commands at the beginning and end of a measurement sequence where you want to make sure that only one...
Read more >
Introducing: Move Sync - Aaptiv
Introducing: Move Sync. Our newest feature lets you see videos of the moves referenced in your Aaptiv workouts on your phone screen in...
Read more >
IF_RobotMotion - MoveSync (Method) - Schneider Electric
A synchronous motion of an auxiliary axis over multiple connected paths is not possible. An issued auxiliary axis motion is only executed if...
Read more >
Comparison of MoveImages MoveSync GetUsingMove and ...
Comparison of MoveImages MoveSync GetUsingMove and Move. The DicomObjects.COM version of DicomObjects provides 4 different mechanisms for initiating C-MOVE ...
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