SFTP path format versus local path format

Viewed 9680

I'm writing some Java code (using JSch library) to SFTP into a remote Windows machine and copy a file to my local Windows folder.

When specifying the path to the file on the remote machine, I'm forced to specify the path in the format /C/temp/myfile.txt instead of C:\temp\myfile.txt.

Questions:

  1. Could you tell me what this format is? Is there a name for it?

  2. Could you tell me if it's possible to use any other format for the path? I'd like to be able to specify the path as C:\temp\myfile.txt, so it's not apparent to the users whether the file is being SFTP'd from a remote machine at all. I'm guessing I'd have to parse/split/replace characters in the path as the FTP get command wouldn't understand this path format.

thanks.

1 Answers
Related