getFileName JavaScript
Node.js 런타임 필요 ('qsu/node')
경로 내의 파일 이름을 반환합니다.
Parameters
filePath::string
: File or directory pathwithExtension:boolean?|false
: Returns the name with extension.
Returns
string
Examples
javascript
getFileName('/home/user/test.txt'); // 'test'
getFileName('/home/user/test.txt', true); // 'test.txt'