mirror of
https://github.com/sasjs/adapter.git
synced 2026-01-16 08:30:07 +00:00
chore: remove tmp utilities
This commit is contained in:
@@ -17,4 +17,3 @@ export * from './fetchLogByChunks'
|
|||||||
export * from './getValidJson'
|
export * from './getValidJson'
|
||||||
export * from './parseViyaDebugResponse'
|
export * from './parseViyaDebugResponse'
|
||||||
export * from './appendExtraResponseAttributes'
|
export * from './appendExtraResponseAttributes'
|
||||||
export * from './tmpFiles'
|
|
||||||
|
|||||||
@@ -1,16 +0,0 @@
|
|||||||
import * as path from 'path'
|
|
||||||
import { getRealPath, folderExists, createFolder } from '@sasjs/utils'
|
|
||||||
|
|
||||||
export const getTmpFolderPath = async () => {
|
|
||||||
const tmpFolderPath = path.join(__dirname, '..', 'tmp')
|
|
||||||
|
|
||||||
if (!(await folderExists(tmpFolderPath))) await createFolder(tmpFolderPath)
|
|
||||||
|
|
||||||
return tmpFolderPath
|
|
||||||
}
|
|
||||||
|
|
||||||
export const getTmpFilesFolderPath = async () =>
|
|
||||||
path.join(await getTmpFolderPath(), 'files')
|
|
||||||
|
|
||||||
export const getTmpLogFolderPath = async () =>
|
|
||||||
path.join(await getTmpFolderPath(), 'log')
|
|
||||||
Reference in New Issue
Block a user