update file structure any provisioning of tscache

This commit is contained in:
Philipp Kunz 2018-07-01 12:10:36 +02:00
parent 353c1f6dbd
commit 00480a27e0
2 changed files with 1 additions and 6 deletions

View File

@ -4,12 +4,7 @@ import * as path from 'path';
const run = async () => { const run = async () => {
const tsCacheDir = path.join(__dirname, '../tscache'); const tsCacheDir = path.join(__dirname, '../tscache');
const tsCacheFiles: string[] = await smartfile.fs.listFolders(tsCacheDir) as any; await smartfile.fs.ensureEmptyDir(tsCacheDir);
for(const dir of tsCacheFiles) {
console.log(`Removing cache directory ${dir}`);
let dirToRemove = path.join(tsCacheDir, dir);
await smartfile.fs.removeSync(dirToRemove);
}
} }
run() run()

View File