Internet Direct (Indy)
Home
PreviousUpNext
TIdFTP.RemoveDir Method

Removes a directory on the FTP server.

Pascal
procedure RemoveDir(
    const ADirName: string
);
Parameters 
Description 
ADirName 
Directory to be removed. 

RemoveDir is a procedure used to request that the directory in ADirName be removed from the FTP server file hierarchy. 

RemoveDir sends the FTP RMD command using the argument in ADirName to remove the requested directory. 

ADirName can contain either an absolute or relative path name on the remote file system. In general, FTP server implementation will not allow the client to remove the root directory or top-level directory on the remote file system. 

Some FTP servers do not allow users to remove directory entries when their permissions are not sufficient for the operation. 

Use Delete to remove files from the FTP server file system.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.