mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2025-01-12 23:08:03 +03:00
Updated FTP function (now handles misunderstood SITE CHMOD commands)
This commit is contained in:
parent
7225aa3cc0
commit
471ba0adbf
Binary file not shown.
@ -702,13 +702,21 @@ begin
|
|||||||
try
|
try
|
||||||
eGoBack := False;
|
eGoBack := False;
|
||||||
|
|
||||||
|
try
|
||||||
if FileList[i] = 'liblist.gam' then
|
if FileList[i] = 'liblist.gam' then
|
||||||
frmMain.IdFTP.Site('CHMOD 744 liblist.gam');
|
frmMain.IdFTP.Site('CHMOD 744 liblist.gam');
|
||||||
|
except
|
||||||
|
AddStatus('Warning: CHMOD not supported.', clMaroon);
|
||||||
|
end;
|
||||||
|
|
||||||
UploadFile(ExtractFilePath(ParamStr(0)) + 'temp\' + FileList[i], ePath + FileList[i], CopyConfig);
|
UploadFile(ExtractFilePath(ParamStr(0)) + 'temp\' + FileList[i], ePath + FileList[i], CopyConfig);
|
||||||
|
|
||||||
|
try
|
||||||
if FileList[i] = 'liblist.gam' then
|
if FileList[i] = 'liblist.gam' then
|
||||||
frmMain.IdFTP.Size('CHMOD 444 liblist.gam');
|
frmMain.IdFTP.Size('CHMOD 444 liblist.gam');
|
||||||
|
except
|
||||||
|
AddStatus('Warning: CHMOD not supported.', clMaroon);
|
||||||
|
end;
|
||||||
except
|
except
|
||||||
on E: Exception do begin
|
on E: Exception do begin
|
||||||
if Cancel then exit;
|
if Cancel then exit;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user