Answer the question
In order to leave comments, you need to log in
How to change folder attributes via ftp using c#?
tried only
request.Method = "CHMOD 777 " + dirname;
method is not supported.
Answer the question
In order to leave comments, you need to log in
chmod is not a standard ftp command, therefore its support depends solely on the desire of the ftp server developers. judging by the "method is not supported" - you once again have a situation when it was not implemented.
You can see the list of available commands through help. For example, for filezilla:
Command: help
Response: 214-The following commands are recognized:
Response: ABOR ADAT ALLO APPE AUTH CDUP CLNT CWD
Response: DELE EPRT EPSV FEAT HASH HELP LIST MDTM
Response: MFMT MKD MLSD MLST MODE NLST NOOP NOP
Response: OPTS PASS PASV PBSZ PORT PROT PWD QUIT
Response: REST RETR RMD RNFR RNTO SITE SIZE STOR
Response: STRU SYST TYPE USER XCUP XCWD XMKD XPWD
Response: XRMD
Response: 214 Have a nice day.
SITE CHMOD 777 FILENAME
, the rest of the options are a step away from the standard
The simplest method is to supply a nuget package with this functionality. Look for them there are many
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question