Tauri extname
extname(: ):Promisepathstring<string>
返回 的扩展名。path
例
import { extname, resolveResource } from '@tauri-apps/api/path';
const resourcePath = await resolveResource('app.conf');
const ext = await extname(resourcePath);
assert(ext === 'conf');Since: 1.0.0
参数
| 名字 | 类型 |
|---|---|
path | string |
Returns: Promise<string>