Check free diskspace before starting moving files

fix #3893