Howto? chmode on remote file (General questions)

by Jan, (7179 days ago)

Hello,
I would like to mark all those files I have already downloaded.

So, I think one of the methode is to change file permissions
on remote file.

But I can not find any function in VC, which does it.

Example is welcome

Thanks

Jan

locked

Re: Howto? chmode on remote file

by Jasmine, (7179 days ago) @ Jan

Jan,

I suggest you use SetAttributes method, which (partially) works no matter which protocol you select. If you don't want that, you can use RawSend( SITE CHMOD... ) in FTP protocol.

Would that help?

locked

Re: Howto? chmode on remote file

by Jan, (7178 days ago) @ Jasmine

Jan,

I suggest you use SetAttributes method, which (partially) works no matter which protocol you select. If you don't want that, you can use RawSend( SITE CHMOD... ) in FTP protocol.

Would that help?

Hello,
it was fist what do I try.
But, VC7 compiler does not find this function:
'SetAttributes' : is not a member of 'IwodFtpDLXCom'
wodftpdlx.tlh(693) : see declaration of 'IwodFtpDLXCom'

Can you follow it?

Thanks
Jan

locked

Re: Howto? chmode on remote file

by Jasmine, (7178 days ago) @ Jan

Jan,

what version of wodFtpDLX you use? Something old? SetAttributes was added in 2.3.9

If you use C++, perhaps you need to re-import wodFtpDLX into the project to refresh wrapper headers.

locked

Re: Howto? chmode on remote file

by Jan, (7177 days ago) @ Jasmine


what version of wodFtpDLX you use? Something old? SetAttributes was added in 2.3.9

Yes, I have get the newest version of wodFtpDLX,
but I have imported data from the other old one.
Now, I can see the new function SetAttributes.

Can you, please write how do I use the other function:
GetAttributes
in your ATL vc-sample?
I do not have any Events-parser.

I have [as input] the file name and folder name on SFTP server.
I need the attributes of this file [as output].

How do I realize it?

Many thanks
Jan


[:smile:]

locked

Re: Howto? chmode on remote file

by Jasmine, (7177 days ago) @ Jan

Jan,

if you don't use events then after calling GetAttributes you should read ListItem property to get information you requested. Since this is string property, you will receive it in such format that you need to parse by yourself.

locked