EldoS | Feel safer!

Software components for data protection, secure storage and transfer

File Attribute change on SFTP

Also by EldoS: Callback File System
Create virtual file systems and disks, expose and manage remote data as if they were files on the local disk.
#3703
Posted: 09/05/2007 04:50:28
by Pascal Clement (Basic support level)
Joined: 09/05/2007
Posts: 3

Hi@all
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....

VAR
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;
SftpClient.SetAttributes(FName,Attr);

But the attributes did not change.





#3704
Posted: 09/05/2007 04:57:30
by Ken Ivanov (Team)

Please use the Attr.IncludedAttributes property to specify which exactly attributes are to be modified.
#3705
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;
#3714
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?
#3715
Posted: 09/06/2007 08:52:04
by Ken Ivanov (Team)

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: Callback File System
Create virtual file systems and disks, expose and manage remote data as if they were files on the local disk.

Reply

Statistics

Topic viewed 2455 times

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




|

Back to top

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

Got it!