The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/server/lib/fileUtils.ts

11 lines
270 B

import path from 'path';
import filenamify from 'filenamify';
export function fileName(name: string): string {
return filenamify(name, { replacement: '-' });
}
export function joinPath(base: string, name: string): string {
return path.join(base, fileName(name));
}