SetAttributes method - WeOnlyDo Discussion board

SetAttributes method (wodSFTP / wodSFTP.NET / wodSFTPdll)

by Sumit, Sunday, January 09, 2005, 10:26 (7259 days ago)

hi,
my program is creating a directory on the server using 'MakeDir' function. then it uploads a files into that directory on the server. the directory when created has some default attributes. my problem is that i need to set the attributes of the directory which i have created, as drwxrwxrwx. probably this can be done using 'SetAttributes' method but i have not been able to figure out exactly how to use it. can u please send me a code snippet in VB6 that does the same?
thanx in advance.
sumit.

Re: SetAttributes method

by wodSupport, Sunday, January 09, 2005, 14:08 (7259 days ago) @ Sumit

Sumit,

you should call SetAttributes with argument Permission = 511. If you do some maths, DEC 511 = OCT 777 which is value you need.

Hope it helps.