Internet Direct (Indy)
Home
PreviousUpNext
TIdFSP.MakeDir Method

Creates a new directory on the remote FSP host.

Pascal
procedure MakeDir(
    const ADirName: string
);
Parameters 
Description 
ADirName 
Directory name to create on the remote FSP host. 

MakeDir is a procedure used to create a new directory with the name specified in ADirName on the remote FSP host. 

MakeDir calls SendCmd using the FSP CC_MAKE_DIR command and the argument specified in ADirName. MakeDir parses directory information in the FSP response packet, and stores the values in the DirInfo property. 

Use DirInfo to access directory metadata populated using values in the FSP protocol response. 

Please note that the remote FSP must include directory creation privileges for the specified directory or an EIdFSPProtException will be raised. 

Use RemoveDir to remove a directory on the remote FSP host.

Exceptions 
Description 
Raised with the data from the FSP response packet. 

Send 

EIdProtocolResponseError

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.