Skip to content

Commit

Permalink
DO NOT MERGE: debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
domoscargin committed Aug 16, 2023
1 parent b36647d commit c7d3e8f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions shared/lib/files.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,16 @@ async function getDirectories(directoryPath) {
* @returns {Promise<{[key: string]: import('fs').Stats}>} - File names and size
*/
async function getFileSizes(directoryPath, options = {}) {
console.log(directoryPath)
const filesForAnalysis = await getListing(directoryPath, options)

console.log(filesForAnalysis)
const result = {}

for (const filename of filesForAnalysis) {
const stats = await stat(filename)
result[filename] = stats

Check failure on line 63 in shared/lib/files.js

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest)

Element implicitly has an 'any' type because expression of type 'string' can't be used to index type '{}'.

Check failure on line 63 in shared/lib/files.js

View workflow job for this annotation

GitHub Actions / Build (windows-latest)

Element implicitly has an 'any' type because expression of type 'string' can't be used to index type '{}'.
}

console.log(result)
return result

Check failure on line 66 in shared/lib/files.js

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest)

Type '{}' is not assignable to type '{ [key: string]: Stats; }'.

Check failure on line 66 in shared/lib/files.js

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest)

Type '{}' is not assignable to type '{ [key: string]: Stats; }'.

Check failure on line 66 in shared/lib/files.js

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest)

Type '{}' is not assignable to type '{ [key: string]: Stats; }'.

Check failure on line 66 in shared/lib/files.js

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest)

Type '{}' is not assignable to type '{ [key: string]: Stats; }'.

Check failure on line 66 in shared/lib/files.js

View workflow job for this annotation

GitHub Actions / Build (windows-latest)

Type '{}' is not assignable to type '{ [key: string]: Stats; }'.

Check failure on line 66 in shared/lib/files.js

View workflow job for this annotation

GitHub Actions / Build (windows-latest)

Type '{}' is not assignable to type '{ [key: string]: Stats; }'.

Check failure on line 66 in shared/lib/files.js

View workflow job for this annotation

GitHub Actions / Build (windows-latest)

Type '{}' is not assignable to type '{ [key: string]: Stats; }'.

Check failure on line 66 in shared/lib/files.js

View workflow job for this annotation

GitHub Actions / Build (windows-latest)

Type '{}' is not assignable to type '{ [key: string]: Stats; }'.
}

Expand Down

0 comments on commit c7d3e8f

Please sign in to comment.