nerd-components/path-utils

用于处理目录路径的函数

v0.1 2016-09-30 08:02 UTC

This package is not auto-updated.

Last update: 2024-09-18 21:02:52 UTC


README

Build Status Coverage Status StyleCI

用法

use function Nerd\Utils\AbsolutePath\pathMaker;

$make = pathMaker('/some/root');

echo $make('file'); 		// /some/root/file
echo $make('../foo.txt'); 	// /some/foo.txt
echo $make('./other.txt');	// /some/root/other.txt