Skip to content

Commit 40c6a3b

Browse files
committed
feature: @putout/plugin-putout: declare: readDirectory: add
1 parent d6c6067 commit 40c6a3b

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

packages/plugin-putout/lib/declare/fixture/operator-filesystem-fix.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import {operator} from 'putout';
22

3+
const {readDirectory} = operator;
34
const {renameFiles} = operator;
45
const {getFileType} = operator;
56
const {copyFile} = operator;
@@ -11,3 +12,4 @@ createFile(dirPath, 'hello');
1112
copyFile(filePath, dirPath);
1213
getFileType();
1314
renameFiles();
15+
readDirectory();

packages/plugin-putout/lib/declare/fixture/operator-filesystem.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ createFile(dirPath, 'hello');
33
copyFile(filePath, dirPath);
44
getFileType();
55
renameFiles();
6+
readDirectory();

packages/plugin-putout/lib/declare/operator/filesystem.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@ module.exports = {
1414
getFilename: 'const {getFilename} = operator',
1515
getFileType: 'const {getFileType} = operator',
1616
copyFile: 'const {copyFile} = operator',
17+
readDirectory: 'const {readDirectory} = operator',
1718
};

0 commit comments

Comments
 (0)