SetAttributes method (wodSFTP / wodSFTP.NET / wodSFTPdll)
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
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.