This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var fs = require('fs'), | |
q = require('q'); | |
/** | |
* Move a file from src to dest, avoiding cross-device rename failures. | |
* This method will first try fs.rename and call the supplied callback if it succeeds. Otherwise | |
* it will pump the conent of src into dest and unlink src upon completion. | |
* |