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:
8
src/utils/file.ts
Normal file
8
src/utils/file.ts
Normal 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')
|
||||
Reference in New Issue
Block a user