toValidFilePath 

Node.js 런타임 필요 ('qsu/node')경로에 있는 유효하지 않거나 불필요한 문자를 제거합니다.
Parameters
| 이름 | 타입 | 필수 | 기본값 |
|---|---|---|---|
filePath | string | ● | – |
isWindows![]() named | boolean | – | – |
| Whether the target operating system to be checked is Windows | |||

named 표시가 있는 파라미터는 Dart에서는 named 파라미터, Python에서는 키워드 인자로 전달됩니다.
Returns
string
Examples
javascript
toValidFilePath('C:\\Windows\\System32\\', true); // 'C:\Windows\System32'
toValidFilePath('home/user/.bashrc'); // '/home/user/.bashrc'dart
toValidFilePath('C:\\Windows\\System32\\', isWindows: true); // 'C:\Windows\System32'
toValidFilePath('home/user/.bashrc'); // '/home/user/.bashrc'python
toValidFilePath('C:\\Windows\\System32\\', True) # 'C:\Windows\System32'
toValidFilePath('home/user/.bashrc') # '/home/user/.bashrc'