joinFilePath
Node.js 런타임 필요 ('qsu/node')지정된 매개 변수 값에 따라 각 운영 체제에 대한 경로를 결합합니다.
Parameters
| 이름 | 타입 | 필수 | 기본값 |
|---|---|---|---|
isWindows named keyword | booleanbool | ● | – |
| Whether the target operating system to be checked is Windows | |||
paths | ...string[]List<String>*str | ● | – |
| A path value consisting of one or more strings. Omit the path separator and put it in the parameter. | |||
named이 파라미터는 named 파라미터로 전달합니다.
keyword이 파라미터는 키워드 인자로 전달하거나, 대신 dict 하나로 전달합니다.
Returns
string
String
str
Examples
javascript
joinFilePath(true, 'C:\\', 'Windows', 'System32'); // 'C:\Windows\System32'
joinFilePath(false, 'home', '/user', '.bashrc'); // '/home/user/.bashrc'dart
joinFilePath(['C:\\', 'Windows', 'System32'], isWindows: true); // 'C:\Windows\System32'
joinFilePath(['home', '/user', '.bashrc']); // '/home/user/.bashrc'python
joinFilePath(True, 'C:\\', 'Windows', 'System32') # 'C:\Windows\System32'
joinFilePath(False, 'home', '/user', '.bashrc') # '/home/user/.bashrc'