@@ -9,36 +9,36 @@ export default class FileSystemApi extends BaseApi {
99 //
1010 //
1111
12- // Get the list of workspaces.
12+ // Get the list of workspaces
1313 getWorkspaces ( ) {
1414 return this . apiClient . get ( '/get-workspaces' )
1515 }
1616
17- // Get the name of the active workspace.
18- getWorkspace ( ) {
19- return this . apiClient . get ( '/get-workspace' )
17+ // Get the name of the active workspace
18+ getWorkspaceName ( ) {
19+ return this . apiClient . get ( '/get-workspace-name ' )
2020 }
2121
2222 setWorkspace ( workspace : string ) {
2323 return this . apiClient . post ( '/set-workspace' , { workspace } )
2424 }
2525
26- // Get list of files in workspace or workspace directory.
27- getWorkspaceFiles ( path : string = '' ) {
28- return this . apiClient . post ( '/get-workspace- files' , { path } )
26+ // Get list of files in workspace directory
27+ getFiles ( path : string = '' ) {
28+ return this . apiClient . post ( '/get-files' , { path } )
2929 }
3030
31- // Get file content from path.
31+ // Get file content from path
3232 getFile ( path : string = '' , query : LocationQuery = { } ) {
3333 return this . apiClient . post ( '/get-file' , { path, query } )
3434 }
3535
36- // Open a file in its OS application.
36+ // Open a file in its OS application
3737 openFileOS ( path_absolute : string = '' ) {
3838 return this . apiClient . post ( '/open-file-os' , { path_absolute } )
3939 }
4040
41- // Delete a file.
41+ // Delete a file
4242 deleteFile ( path_absolute : string = '' ) {
4343 return this . apiClient . post ( '/delete-file' , { path_absolute } )
4444 }
0 commit comments