PxPlus User Forum

Twitter Twitter Twitter

Author Topic: *web/sftp directory delimiters  (Read 588 times)

Peter.Higgins

  • Diamond Member
  • *****
  • Posts: 124
    • View Profile
*web/sftp directory delimiters
« on: July 21, 2022, 01:30:50 PM »
In a continuing battle to connect to a specific network I and being asked to add a trailing delimiter to the directory path.  This is stripped by the sftp program.  Is there a way to escape the final path delimiter.

Devon Austen

  • Administrator
  • Diamond Member
  • *****
  • Posts: 382
  • Don’t Panic
    • View Profile
    • PVX Plus Technologies
Re: *web/sftp directory delimiters
« Reply #1 on: July 21, 2022, 02:52:41 PM »
To better help you I would need to see the type of call you are making to *web/sftp. Make sure not to include any actual private info when posting the example i.e usernames and passwords.

What error are you getting and why do you think the delimiter is being stripped?

As far as I know the *web/sftp program does not strip any trailing delimiters off. In fact we often add a trailing delimiter if missing in the code. Our tool uses curl and it is possible it may be doing something but I have not seen any issues before.
Principal Software Engineer for PVX Plus Technologies LTD.

Peter.Higgins

  • Diamond Member
  • *****
  • Posts: 124
    • View Profile
Re: *web/sftp directory delimiters
« Reply #2 on: July 21, 2022, 03:21:17 PM »
Devon,
The delimiter editing is likely a curl thing.  I removed the *.* from /PO/OUT/*.* and the delimiter started disappearing in the remote log.  I added the escape /PO/OUT\/ from the earlier curl question this year which I did not find until after asking.  The remote network reported the path had the trailing delimiter with escape added, but still no joy.  Almost certainly the remote network's issue because the code works everywhere else we connect.