EldoS | Feel safer!

Software components for data protection, secure storage and transfer

File Attribute change on SFTP

Also by EldoS: Solid File System
A virtual file system that offers a feature-rich storage for application documents and data with built-in compression and encryption.
Posted: 09/05/2007 04:50:28
by Pascal Clement (Basic support level)
Joined: 09/05/2007
Posts: 3

It's my first time on this board and As the first I would like to apologize for my bad English

I have not found any contribution to this topic ight now.
I try to change the attributes after a transferred file from windows to unix. The file transfer was done and looks OK. So for change the permissions....

Attr : TElSftpFileAttributes;

Attr := TElSftpFileAttributes.Create;
Attr.UserRead := True;
Attr.UserWrite := True;
Attr.UserExecute := True;
Attr.GroupRead := True;
Attr.GroupWrite := True;
Attr.GroupExecute := True;
Attr.OtherRead := True;
Attr.OtherWrite := False;
Attr.OtherExecute := True;

But the attributes did not change.

Posted: 09/05/2007 04:57:30
by Ken Ivanov (EldoS Corp.)

Please use the Attr.IncludedAttributes property to specify which exactly attributes are to be modified.
Posted: 09/05/2007 09:42:59
by Pascal Clement (Basic support level)
Joined: 09/05/2007
Posts: 3

hmm like that?
Attr.IncludedAttributes := saPermissions;
Posted: 09/06/2007 08:31:17
by Pascal Clement (Basic support level)
Joined: 09/05/2007
Posts: 3

…looks better ...
Attr.IncludedAttributes := [saPermissions];

The SFTP up or download is very slow. For a download for a file with a size from 700kb, the TElSimpleSFTPClient takes more the 8 second.

Is that normal?
Posted: 09/06/2007 08:52:04
by Ken Ivanov (EldoS Corp.)

The slowdowns are caused by the restrictions of evaluation version. Please request a temporary unlock key at http://eldos.com/sbb/keyreq/ if you need to test the speed of the registered version.
Also by EldoS: CallbackRegistry
A component to monitor and control Windows registry access and create virtual registry keys.



Topic viewed 2171 times

Number of guests: 1, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!