open file locally
close file transmission
Transfer file when opening and closing