WP_Filesystem_FTPext::mkdir( string $path, mixed $chmod = false, mixed $chown = false, mixed $chgrp = false )


Description Description


Parameters Parameters

$path

(string) (Required)

$chmod

(mixed) (Optional)

Default value: false

$chown

(mixed) (Optional)

Default value: false

$chgrp

(mixed) (Optional)

Default value: false


Top ↑

Return Return

(bool)


Top ↑

Source Source

File: wp-admin/includes/class-wp-filesystem-ftpext.php

	public function mkdir( $path, $chmod = false, $chown = false, $chgrp = false ) {
		$path = untrailingslashit( $path );
		if ( empty( $path ) ) {
			return false;
		}

		if ( ! @ftp_mkdir( $this->link, $path ) ) {
			return false;
		}
		$this->chmod( $path, $chmod );
		return true;
	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.