WP_Filesystem_SSH2::sftp_path() – Gets the ssh2.sftp PHP stream wrapper path to open for the given file.
You appear to be a bot. Output may be restricted
Gets the ssh2.sftp PHP stream wrapper path to open for the given file.
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.
$string = WP_Filesystem_SSH2::sftp_path( $path );
- ( string ) required – The File/Directory path on the remote server to return
string The ssh2.sftp:// wrapped path to use.
File name: wordpress/wp-admin/includes/class-wp-filesystem-ssh2.php