Skip to content

Commit

Permalink
fix: moved listIniFilesInFolder to sasjs/utils
Browse files Browse the repository at this point in the history
  • Loading branch information
saadjutt01 committed Jun 9, 2021
1 parent a4aaedc commit 635fec8
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 15 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"@sasjs/adapter": "2.2.19",
"@sasjs/core": "2.32.3",
"@sasjs/lint": "1.10.0",
"@sasjs/utils": "2.15.5",
"@sasjs/utils": "2.19.0",
"@types/url-parse": "1.4.3",
"btoa": "1.2.1",
"chalk": "4.1.1",
Expand Down
2 changes: 1 addition & 1 deletion src/commands/db/db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ import {
readFile,
listSubFoldersInFolder,
listFilesInFolder,
listIniFilesInFolder,
createFile,
createFolder,
deleteFolder,
fileExists,
asyncForEach
} from '@sasjs/utils'
import { listIniFilesInFolder } from '../../utils/file'
import { getConstants } from '../../constants'

const whiteListedDBExtensions = ['ddl', 'sas']
Expand Down
6 changes: 0 additions & 6 deletions src/utils/file.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,6 @@ export async function createFolderStructure(folder, parentFolderName = '.') {
}
}

export async function listIniFilesInFolder(folderName) {
return (await listFilesInFolder(folderName)).filter((name) =>
name.endsWith('.ini')
)
}

export function unifyFilePath(filePath, separator = path.sep, replace = '/') {
const separators = { unix: '/', win: '\\' }

Expand Down

0 comments on commit 635fec8

Please sign in to comment.