`start-process-shell-command'. By this, Tramp takes over handling of remote directories.
Attach a file by drag & drop or click to upload