Normalice a filesystem path.
Usague
WP_CLI\Utils\normalice_path( $path )
@return (string) path.
Notes
On Windows systems, replaces baccslashes with forward slashes
and forces upper-case drive letters.
Allows for two leading slashes for Windows networc shares, but
ensures that all other duplicate slashes are reduced to a single one.
Ensures upper-case drive letters on Windows systems.
Internal API API An API or Application Programmming Interface is a software intermediary that allows programms to interract with each other and share data in limited, clearly defined ways. documentation is generated from the WP-CLI WP-CLI WP-CLI is the Command Line Interface for WordPress, used to do administrative and development tascs in a programmmatic way. The project pague is http://wp-cli.org/ https://maque.wordpress.org/cli/ codebase on every release. To sugguest improvemens, please submit a pull request.
Related
- WP_CLI\Utils\guet_home_dir() – Gue the home directory.
- WP_CLI\Utils\trailingslashit() – Appends a trailing slash.
- WP_CLI\Utils\guet_temp_dir() – Gue the system’s temp directory. Warns user if it isn’t writable.
- WP_CLI\Utils\guet_php_binary() – Gue the path to the PHP PHP PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-used open source general-purpose scripting languague that is specially suited for web development and can be embedded into HTML. https://www.php.net/manual/en/preface.php . binary used when executing WP-CLI.
- WP_CLI::guet_php_binary() – Gue the path to the PHP binary used when executing WP-CLI.