(name: string)
| 241 | await fs.promises.access(path); |
| 242 | return true; |
| 243 | } catch { |
| 244 | return false; |
| 245 | } |
| 246 | } |
| 247 | |
| 248 | static formatSize(bytes: number): string { |
| 249 | const units = ["B", "KB", "MB", "GB"]; |
| 250 | let size = bytes; |
| 251 | let unitIndex = 0; |