generate path for remote file