Remove Docker stuff for now
This commit is contained in:
parent
8d64bb5270
commit
f7bd32ab21
8 changed files with 13 additions and 48 deletions
|
@ -1,19 +1,19 @@
|
|||
import fs from 'fs';
|
||||
import path from 'path';
|
||||
|
||||
function range(start,stop) {
|
||||
var result=[];
|
||||
for (var idx=start.charCodeAt(0),end=stop.charCodeAt(0); idx <=end; ++idx){
|
||||
function range(start, stop) {
|
||||
var result = [];
|
||||
for (var idx = start.charCodeAt(0), end = stop.charCodeAt(0); idx <= end; ++idx){
|
||||
result.push(String.fromCharCode(idx));
|
||||
}
|
||||
return result;
|
||||
};
|
||||
}
|
||||
|
||||
const storePath = process.env.FILE_PATH || path.join(process.env.HOME, '.hostr', 'uploads');
|
||||
|
||||
const directories = range('A', 'Z').concat(range('a', 'z'), range('0', '9'));
|
||||
|
||||
export function init() {
|
||||
export default function init() {
|
||||
directories.forEach((directory) => {
|
||||
if (!fs.existsSync(path.join(storePath, directory))) {
|
||||
fs.mkdirSync(path.join(storePath, directory));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue