FTPFileSystem.RenameFile

Giganews Newsgroups
Subject: FTPFileSystem.RenameFile
Posted by:  Johan Nilsson (input_remove_@home.se)
Date: Tue, 17 Apr 2007

Hi,

I'm not sure this is the proper place to report bugs, but shouldn't the
TIdFTPBaseFileSystem.RenameFile include a ARenameFromFile-parameter?
Suggested changes (wihtout any deeper knowledge of the inner workings of
Indy):

IdFTPBaseFileSystem.pas line 102:
  procedure RenameFile(AContext : TIdFTPServerContextBase; const
ARenameToFile: string); virtual; abstract;
change to:
  procedure RenameFile(AContext : TIdFTPServerContextBase; const
ARenameFromFile, ARenameToFile: string); virtual; abstract;

IdFTPServer.pas line 4842:
    FFTPFileSystem.RenameFile(ASender, ARenameToFile);
change to:
    FFTPFileSystem.RenameFile(ASender, ARenameFromFile, ARenameToFile);

/Johan

Replies