Skip to content

Commit

Permalink
remove the use of fs-extra (#4370)
Browse files Browse the repository at this point in the history
  • Loading branch information
soulgalore authored Dec 28, 2024
1 parent 9a4ec79 commit e027097
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 46 deletions.
8 changes: 5 additions & 3 deletions lib/core/resultsStorage/storageManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
writeFile as _writeFile
} from 'node:fs';

import { copy } from 'fs-extra/esm';
import { cp } from 'node:fs/promises';
import intel from 'intel';

import { pathToFolder } from './pathToFolder.js';
Expand Down Expand Up @@ -69,10 +69,12 @@ export function storageManager(baseDir, storagePathPrefix, options) {
return storagePathPrefix;
},
copyToResultDir(filename) {
return this.createDirectory().then(dir => copy(filename, dir));
return this.createDirectory().then(dir =>
cp(filename, dir, { recursive: true })
);
},
copyFileToDir(filename, dir) {
return copy(filename, dir);
return cp(filename, dir, { recursive: true });
},
// TODO is missing alias
removeDataForUrl(url) {
Expand Down
44 changes: 2 additions & 42 deletions npm-shrinkwrap.json

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

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@
"fast-crc32c": "2.0.0",
"fast-stats": "0.0.7",
"find-up": "7.0.0",
"fs-extra": "11.2.0",
"getos": "3.2.1",
"import-global": "1.1.1",
"influx": "5.9.3",
Expand Down

0 comments on commit e027097

Please sign in to comment.