WP_Filesystem_SSH2::sftp_path

Advertisement

Summery Summery

Gets the ssh2.sftp PHP stream wrapper path to open for the given file.

Syntax Syntax

WP_Filesystem_SSH2::sftp_path( string $path )

Description Description

This method also works around a PHP bug where the root directory (/) cannot be opened by PHP functions, causing a false failure. In order to work around this, the path is converted to /./ which is semantically the same as / See https://bugs.php.net/bug.php?id=64169 for more details.

Parameters Parameters

$path

(string) (Required) The File/Directory path on the remote server to return

Return Return

(string) The ssh2.sftp:// wrapped path to use.

Source Source

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

	}

	/**
	 * @since 2.7.0
	 *
	 * @param string $command

Advertisement

Changelog Changelog

Changelog
Version Description
4.4.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.