drive: fix contents lost when cut-paste a folder.

Tested on ubuntu 14.04 and Windows 7.