LUN-1152: file content needs to be saved before changing location
Merge pull request #42 from pbs/LUN-1152

LUN-1152: file content needs to be saved before changing location