We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f34a77 commit 4ac5c75Copy full SHA for 4ac5c75
src/secrets/CommandMkdir.ts
@@ -65,19 +65,14 @@ class CommandMkdir extends CommandPolykey {
65
const writer = response.writable.getWriter();
66
let first = true;
67
for (const [vault, path] of secretPaths) {
68
- if (first) {
69
- first = false;
70
- await writer.write({
71
- nameOrId: vault,
72
- dirName: path,
73
- metadata: {
74
- ...auth,
75
- options: { recursive: options.recursive },
76
- },
77
- });
78
- } else {
79
- await writer.write({ nameOrId: vault, dirName: path });
80
- }
+ await writer.write({
+ nameOrId: vault,
+ dirName: path,
+ metadata: first
+ ? { ...auth, options: { recursive: options.recursive } }
+ : undefined,
+ });
+ first = false;
81
}
82
await writer.close();
83
return response;
0 commit comments