mirror of
https://github.com/sasjs/server.git
synced 2026-01-09 15:30:05 +00:00
feat(session): add SessionController and ExecutionController
This commit is contained in:
@@ -12,12 +12,15 @@ export const getTmpLogFolderPath = () => path.join(getTmpFolderPath(), 'logs')
|
||||
export const getTmpWeboutFolderPath = () =>
|
||||
path.join(getTmpFolderPath(), 'webouts')
|
||||
|
||||
export const getTmpSessionsFolderPath = () =>
|
||||
path.join(getTmpFolderPath(), 'sessions')
|
||||
|
||||
export const generateUniqueFileName = (fileName: string, extension = '') =>
|
||||
[
|
||||
fileName,
|
||||
'-',
|
||||
Math.round(Math.random() * 100000),
|
||||
'-',
|
||||
generateTimestamp(),
|
||||
new Date().getTime(),
|
||||
extension
|
||||
].join('')
|
||||
|
||||
Reference in New Issue
Block a user