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/app/importer/server/startup/store.js

22 lines
592 B

import { Meteor } from 'meteor/meteor';
import { RocketChatFile } from '../../../file';
import { settings } from '../../../settings';
export let RocketChatImportFileInstance;
Meteor.startup(function() {
const RocketChatStore = RocketChatFile.FileSystem;
let path = '/tmp/rocketchat-importer';
if (settings.get('ImportFile_FileSystemPath') != null) {
if (settings.get('ImportFile_FileSystemPath').trim() !== '') {
path = settings.get('ImportFile_FileSystemPath');
}
}
RocketChatImportFileInstance = new RocketChatStore({
name: 'import_files',
absolutePath: path,
});
});