mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-28 10:02:14 +00:00
ADD: Execute any ftp command from command line
This commit is contained in:
parent
31e25286be
commit
6e6cef0f64
1 changed files with 11 additions and 1 deletions
|
|
@ -663,7 +663,7 @@ begin
|
|||
end;
|
||||
end; // root path
|
||||
end // Verb = open
|
||||
else if Pos('chmod', Verb) > 0 then
|
||||
else if Pos('chmod', Verb) = 1 then
|
||||
begin
|
||||
if GetConnectionByPath(RemoteName, FtpSend, sFileName) then
|
||||
begin
|
||||
|
|
@ -673,6 +673,16 @@ begin
|
|||
Result := FS_EXEC_ERROR;
|
||||
end;
|
||||
end
|
||||
else if Pos('quote', Verb) = 1 then
|
||||
begin
|
||||
if GetConnectionByPath(RemoteName, FtpSend, sFileName) then
|
||||
begin
|
||||
if (FtpSend.FTPCommand(Copy(Verb, 7, MaxInt)) div 100) = 2 then
|
||||
Result:= FS_EXEC_OK
|
||||
else
|
||||
Result := FS_EXEC_ERROR;
|
||||
end;
|
||||
end
|
||||
else if Verb = 'properties' then
|
||||
begin
|
||||
if (ExtractFileDir(RemoteName) = PathDelim) and not (RemoteName[1] in [#0, '<']) then // connection
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue