WP_CLI\Utils\normalize_path()


目录

Normalize a filesystem path.


Usage

WP_CLI\Utils\normalize_path( $path )
$path (string) Path to normalize.
@return (string) path.

Notes

On Windows systems, replaces backslashes with forward slashes and forces upper-case drive letters. Allows for two leading slashes for Windows network shares, but ensures that all other duplicate slashes are reduced to a single one. Ensures upper-case drive letters on Windows systems. Allows for PHP file wrappers.

Internal API documentation is generated from the WP-CLI codebase on every release. To suggest improvements, please submit a pull request.



版本号 #1
由 cocobook-sync 创建于 2026-10-28 11:43:28 UTC
由 cocobook-sync 更新于 2026-10-28 11:43:28 UTC