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
I'm using moveSync to rename a big folder on an external drive. The folder is about 2 GB. It seems like moveSync copies the folder then deletes the original, rather than simply renaming the folder, since it takes a few minutes to finish.
I thought that it was supposed to use rename under the hood, but it seems like that's not the case for me, since when I replace moveSync with renameSync, the rename is instant.
The path to the folder I'm renaming is /Volumes/Data/Test/One, if it matters.
The text was updated successfully, but these errors were encountered:
hmm.. @RyanZim we updated move implementation to use rename as the main operation but somehow we forgot to update the moveSync implementation! I kind of blame myself on that as I was supposed to do that! I will be working on updating moveSync this weekend.
In the meantime, @garyking in order to be a little ahead of ourselves, will you please try your code with move() and tell us if it works?!
manidlou
changed the title
move copies and deletes dirs on external drivesmoveSync copies and deletes dirs on external drives
Aug 4, 2018
fs-extra
version: 7.0.0I'm using
moveSync
to rename a big folder on an external drive. The folder is about 2 GB. It seems likemoveSync
copies the folder then deletes the original, rather than simply renaming the folder, since it takes a few minutes to finish.I thought that it was supposed to use rename under the hood, but it seems like that's not the case for me, since when I replace
moveSync
withrenameSync
, the rename is instant.The path to the folder I'm renaming is
/Volumes/Data/Test/One
, if it matters.The text was updated successfully, but these errors were encountered: