ftp_connection::create_dir

Description

Create a new directory with the specified name.

Syntax

bool ftp_connection::create_dir (string $ftp_dir)



Parameter $ftp_dir

Expected type: String
Description: The name of the directory to create



Return value

Expected type: Boolean
Description: True if successful, false otherwise


Notes

  • Example: $package_ftp->create_dir('somedirectory');
  • Sends an "MKD" (MaKe Directory) command to the server
  • Checks for a 257 response code
  • Sets a 'bad_file' error and returns false if response code isn't 257
Advertisement: