1
0
mirror of https://github.com/sasjs/server.git synced 2026-01-07 22:50:05 +00:00

feat(deploy): add route to deploy a file tree to @sasjs/server

This commit is contained in:
Yury Shkoda
2021-07-09 08:27:15 +03:00
parent c71a08f1d2
commit b4bf72f704
6 changed files with 135 additions and 48 deletions

8
src/utils/file.ts Normal file
View File

@@ -0,0 +1,8 @@
import path from 'path'
import { getRealPath } from '@sasjs/utils'
export const getTmpFolderPath = () =>
getRealPath(path.join(__dirname, '..', '..', 'tmp'))
export const getTmpFilesFolderPath = () =>
path.join(getTmpFolderPath(), 'files')