Howto? chmode on remote file (General questions)
by Jan, Tuesday, September 06, 2005, 15:58 (7017 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
Re: Howto? chmode on remote file
by wodSupport, Tuesday, September 06, 2005, 16:10 (7017 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?
Re: Howto? chmode on remote file
by Jan, Wednesday, September 07, 2005, 11:39 (7016 days ago) @ wodSupport
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
Re: Howto? chmode on remote file
by wodSupport, Wednesday, September 07, 2005, 12:22 (7016 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.
Re: Howto? chmode on remote file
by Jan, Thursday, September 08, 2005, 11:00 (7015 days ago) @ wodSupport
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:]
Re: Howto? chmode on remote file
by wodSupport, Thursday, September 08, 2005, 11:07 (7015 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.