(path)
| 1182 | await fs.mkdir(path, opts); |
| 1183 | }, |
| 1184 | async stat(path) { |
| 1185 | try { |
| 1186 | const stat = await fs.stat(path); |
| 1187 | return toThinkFileInfo({ ...stat, path, name: basename(path) }); |
| 1188 | } catch (err) { |
| 1189 | if (isEnoent(err)) return null; |
| 1190 | throw err; |
| 1191 | } |
| 1192 | }, |
| 1193 | }; |
| 1194 | } |
| 1195 |
no test coverage detected