File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -27,9 +27,14 @@ console.log(await client.fs.writeFile("/workspace/newdir/text.txt", new TextEnco
2727console . log ( "read file..." ) ;
2828console . 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+
3035console . log ( "Reading directory after adding newdir and new file..." ) ;
3136console . log ( await client . fs . readdir ( "/workspace" ) ) ;
3237console . log ( "Removing directory..." ) ;
33- console . log ( await client . fs . remove ( "/workspace/newdir " ) ) ;
38+ console . log ( await client . fs . remove ( "/workspace/newdir2 " ) ) ;
3439console . log ( "Reading directory after deleting newdir..." ) ;
35- console . log ( await client . fs . readdir ( "/workspace" ) ) ;
40+ console . log ( await client . fs . readdir ( "/workspace" ) ) ;
You can’t perform that action at this time.
0 commit comments