Topic Path: Symbol Reference > Classes > TIdFSP Class > TIdFSP Methods > MakeDir Method
ContentsIndexHome
PreviousUpNext
TIdFSP.MakeDir Method

Creates a new directory on the remote FSP host.

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

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.