You can try to use the
Task.Wait()
to wait the file moving completed.
Task.Wait()
to wait the file moving completed.