Skip to content

Commit 0fd65e5

Browse files
committed
feature: @putout/plugin-putout: declare: createNestedDirectory: add
1 parent 5697db2 commit 0fd65e5

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

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

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

3+
const {createNestedDirectory} = operator;
4+
const {createDirectory} = operator;
35
const {readDirectory} = operator;
46
const {renameFiles} = operator;
57
const {getFileType} = operator;
@@ -13,3 +15,5 @@ copyFile(filePath, dirPath);
1315
getFileType();
1416
renameFiles();
1517
readDirectory();
18+
createDirectory();
19+
createNestedDirectory();

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ copyFile(filePath, dirPath);
44
getFileType();
55
renameFiles();
66
readDirectory();
7+
createDirectory();
8+
createNestedDirectory();

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ module.exports = {
88
moveFile: 'const {moveFile} = operator',
99
createFile: 'const {createFile} = operator',
1010
createDirectory: 'const {createDirectory} = operator',
11+
createNestedDirectory: 'const {createNestedDirectory} = operator',
1112
getParentDirectory: 'const {getParentDirectory} = operator',
1213
readFileContent: 'const {readFileContent} = operator',
1314
writeFileContent: 'const {writeFileContent} = operator',

0 commit comments

Comments
 (0)