Fixes for case where files are deleted locally after transfer.