(content: string | Blob)
| 52 | } |
| 53 | |
| 54 | async write(content: string | Blob): Promise<void> { |
| 55 | try { |
| 56 | return await this.writeWithResolvedParent(content); |
| 57 | } catch (error) { |
| 58 | if (!isNotFoundError(error)) { |
| 59 | throw error; |
| 60 | } |
| 61 | this.fs.clearPathCache(); |
| 62 | return await this.writeWithResolvedParent(content); |
| 63 | } |
| 64 | } |
| 65 | |
| 66 | private async writeWithResolvedParent(content: string | Blob): Promise<void> { |
| 67 | // 解析文件路径和文件名 |
nothing calls this directly
no test coverage detected