normalizeDirectoryPath()
function normalizeDirectoryPath(path?): string;
Defined in: packages/rxdb-plugin-storage/src/paths.ts:60
把目录路径规范化为以 / 开头且不带结尾 / 的形式。
Parameters
| Parameter | Type |
|---|---|
path? | string |
Returns
string
Throws
StorageInvalidPathError 路径含空段、反斜杠、.、.. 或首尾空白时抛出。