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

20 lines
587 B

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