(path: string)
| 47 | } |
| 48 | |
| 49 | async getInfo(path: string): Promise<FileInfo> { |
| 50 | const stats = await fs.stat(path); |
| 51 | |
| 52 | return { |
| 53 | size: stats.size, |
| 54 | created: stats.birthtime, |
| 55 | modified: stats.mtime, |
| 56 | accessed: stats.atime, |
| 57 | isDirectory: stats.isDirectory(), |
| 58 | isFile: stats.isFile(), |
| 59 | permissions: stats.mode.toString(8).slice(-3), |
| 60 | fileType: 'binary', |
| 61 | metadata: { |
| 62 | isBinary: true |
| 63 | } |
| 64 | }; |
| 65 | } |
| 66 | |
| 67 | /** |
| 68 | * Generate instructions for handling binary files |
nothing calls this directly
no outgoing calls
no test coverage detected