Skip to content

Commit 12e1e4c

Browse files
committed
fix: sidebar ui update in case of sftp file creation
1 parent 0cf0233 commit 12e1e4c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/helpers.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,9 +398,9 @@ export default {
398398
)
399399
) {
400400
if (isFile) {
401-
await fsOperation(uri).createFile(pathString);
401+
uri = await fsOperation(uri).createFile(pathString);
402402
} else {
403-
await fsOperation(uri).createDirectory(pathString);
403+
uri = await fsOperation(uri).createDirectory(pathString);
404404
}
405405
return { uri: uri, type: isFile ? "file" : "folder" };
406406
}

0 commit comments

Comments
 (0)