|
|
|
@ -34,7 +34,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
|
package fs
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"errors"
|
|
|
|
|
"fmt"
|
|
|
|
|
"os"
|
|
|
|
|
"syscall"
|
|
|
|
|
)
|
|
|
|
@ -60,7 +60,7 @@ func renameFallback(err error, src, dst string) error {
|
|
|
|
|
// 0x11 (ERROR_NOT_SAME_DEVICE) is the windows error.
|
|
|
|
|
// See https://msdn.microsoft.com/en-us/library/cc231199.aspx
|
|
|
|
|
if ok && noerr != 0x11 {
|
|
|
|
|
return errors.Wrapf(terr, "link error: cannot rename %s to %s", src, dst)
|
|
|
|
|
return fmt.Errorf("link error: cannot rename %s to %s: %w", src, dst, terr)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|