* Get the file path for a paste by its content hash.
(hash: string)
| 26 | * Get the file path for a paste by its content hash. |
| 27 | */ |
| 28 | function getPastePath(hash: string): string { |
| 29 | return join(getPasteStoreDir(), `${hash}.txt`) |
| 30 | } |
| 31 | |
| 32 | /** |
| 33 | * Store pasted text content to disk. |
no test coverage detected