* Build the attachment directory for a channel session. * Path: data/sessions/ /attachments/
(rootDir: string, channelId: string)
| 20 | * Path: data/sessions/<channelId>/attachments/ |
| 21 | */ |
| 22 | function getAttachmentDir(rootDir: string, channelId: string): string { |
| 23 | return path.resolve(rootDir, "data", "sessions", channelId, ATTACHMENTS_DIR); |
| 24 | } |
| 25 | |
| 26 | /** |
| 27 | * Sanitise a filename to remove path separators and other unsafe characters. |
no outgoing calls
no test coverage detected