Forum Discussion

jason_steindorf's avatar
jason_steindorf
New Contributor III
3 years ago

SFTP, write file to root

I have an SFTP account that I can connect to

I want to save a file to their root directory

What type of account is needed to create this? And how would I write to the root directory?

Thanks

12 Replies

  • jason_steindorf's avatar
    jason_steindorf
    New Contributor III

    I added the 'sftp://…

    but I am receiving the error

    and I tried it without the port also

    • snkrvish's avatar
      snkrvish
      New Contributor II

      Dear Folks,

      Could you please explain that what value you have given in this url.

      sftp://example.com/folder/file.csv

    • snkrvish's avatar
      snkrvish
      New Contributor II

      Hi,

      I have given file location in file write like below

      Sftp://username@hostname:port/to_pos_dev/emp.csv

      After that getting same error as mentioned in a new contributor III.

       

      Please suggest how we can resolve it.

  • pmancevski's avatar
    pmancevski
    New Contributor III

    Hi @jason.steindorf,

    You can use “Basic Auth” account, and also you can use “File Writer” snap.

    About root directory:

    Thanks,
    Pero M.

  • jason_steindorf's avatar
    jason_steindorf
    New Contributor III

    I created a Basic Auth account, but the file is not writing to it.

    The File Writer looks like this

    And the filename resolves to

    Is the syntax wrong ??

    • pmancevski's avatar
      pmancevski
      New Contributor III

      Hi,

      You want to create directory? If yes, you have “create directory if not present” - just check it.

      Thanks,
      Pero M.

  • jason_steindorf's avatar
    jason_steindorf
    New Contributor III

    Im just tyring to put it in the root directory, but that was checked already

  • jason_steindorf's avatar
    jason_steindorf
    New Contributor III

    Could we set up a quick zoom call?

  • jason_steindorf's avatar
    jason_steindorf
    New Contributor III

    Thank you @pmancevski pmancevski

    So I was unable to write to the root directory but I WAS able to write to a sub directory

    Thanks again, I very much appreciate your assistance on this