mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: FTP - detect encoding before getting current directory
(cherry picked from commit d2416cc2a4)
This commit is contained in:
parent
a44c245a54
commit
cd1bbb9865
2 changed files with 4 additions and 2 deletions
|
|
@ -580,6 +580,8 @@ begin
|
|||
Result:= Connect;
|
||||
if Result then
|
||||
begin
|
||||
if FAuto then DetectEncoding;
|
||||
|
||||
if (Length(FCurrentDir) = 0) then
|
||||
begin
|
||||
if not SendCommand('pwd', FAnswer) then
|
||||
|
|
@ -609,7 +611,6 @@ begin
|
|||
end;
|
||||
end;
|
||||
end;
|
||||
if FAuto then DetectEncoding;
|
||||
end;
|
||||
end;
|
||||
|
||||
|
|
|
|||
|
|
@ -125,6 +125,8 @@ begin
|
|||
Result:= Connect;
|
||||
if Result then
|
||||
begin
|
||||
if FAuto then DetectEncoding;
|
||||
|
||||
if (Length(FCurrentDir) = 0) then
|
||||
begin
|
||||
SetLength(FCurrentDir, MAX_PATH + 1);
|
||||
|
|
@ -137,7 +139,6 @@ begin
|
|||
end;
|
||||
DoStatus(False, 'Remote directory: ' + FCurrentDir);
|
||||
end;
|
||||
if FAuto then DetectEncoding;
|
||||
end;
|
||||
end;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue