Closed davidmerfield closed 1 year ago
I'm going to rule this as out of scope. It's a nice feature for more user-facing applications, but fs-extra tends to focus on developer-facing features (for example, we have remove()
but not trash()
). Good idea for a standalone npm package, perhaps, though.
Fair enough – thanks for your work on fs-extra
Any interest in an additional option for
fs.move
which appends a suffix to destination file or folder names if the destination already exists, e.g.The return value of
fs.move
would be the final, suffixed path.I'm not sure if 'suffix' is the appropriate term, perhaps 'dupe', 'rename', 'dedupe'? If there's interest, I'm happy to put together a PR. I've written the code already for my own project