Working move file function.