Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: SFTP PutFile using a stream does not set file permissions

Come on, most use cases use the default permissions.
Guest

Re: SFTP PutFile using a stream does not set file permissions

That is unfortunate. That does mean that for most use cases this command is useless.
martin

Re: SFTP PutFile using a stream does not set file permissions

Indeed, preserving permissions is not supported with Session.PutFile.
Guest

SFTP PutFile using a stream does not set file permissions

I am trying to use the .NET Assembly using the following code:
session.PutFile(inputStream,remoteFile,options: new TransferOptions { FilePermissions = new FilePermissions { Octal = "666" }});

The file transfers successfully but the permissions do not update. Using the PutFiles command with a local file works correctly.
Any ideas?