Skip to content

Commit 803a991

Browse files
committed
test rename file
1 parent 9d93f91 commit 803a991

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

test.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,14 @@ console.log(await client.fs.writeFile("/workspace/newdir/text.txt", new TextEnco
2727
console.log("read file...");
2828
console.log(await client.fs.readTextFile("/workspace/newdir/text.txt"));
2929

30+
console.log("Reading directory after adding newdir and new file...");
31+
console.log(await client.fs.readdir("/workspace"));
32+
console.log("rename file.....");
33+
console.log(await client.fs.rename("/workspace/newdir/text.txt", "/workspace/newdir2/renamed.txt"));
34+
3035
console.log("Reading directory after adding newdir and new file...");
3136
console.log(await client.fs.readdir("/workspace"));
3237
console.log("Removing directory...");
33-
console.log(await client.fs.remove("/workspace/newdir"));
38+
console.log(await client.fs.remove("/workspace/newdir2"));
3439
console.log("Reading directory after deleting newdir...");
35-
console.log(await client.fs.readdir("/workspace"));
40+
console.log(await client.fs.readdir("/workspace"));

0 commit comments

Comments
 (0)