SharedDirectoryWriteResponse#1008
Conversation
… previously janky validity checks
… previously janky validity checks
…-file-system-access
…client which converts it to a FileSystemObject
…wever for big directories (like node_modules) this takes forever. Going to try a non-Promise.all version
341b8f2 to
11eb8ed
Compare
kimlisa
left a comment
There was a problem hiding this comment.
resizing isn't possible yet right?
| this.logger.debug(req); | ||
| // TODO(isaiah): here's where we'll respond with a SharedDirectoryWriteResponse | ||
|
|
||
| const bytesWritten = await this.sdManager.writeFile( |
There was a problem hiding this comment.
the handleSharedDirectoryListRequest (below) has a try/catch block and calls handleError, does this block need it too?
There was a problem hiding this comment.
Yes good catch. Typically anything that calls this.sdManager should be wrapped in try/catch
webapps/packages/teleport/src/lib/tdp/sharedDirectoryManager.ts
Lines 15 to 17 in 11eb8ed
|
was that |
correct
Yes that error was only ever happening for me right around when I started directory sharing. You're seeing it while just clicking around the interface while not directory sharing? |
|
* `SharedDirectoryInfoResponse` (#996) * `SharedDirectoryListRequest` (#999) * `SharedDirectoryListResponse` (#1000) * `SharedDirectoryReadRequest` (#1003) * `SharedDirectoryReadResponse` (#1005) * `SharedDirectoryWriteRequest` (#1007) * `SharedDirectoryWriteResponse` (#1008) * Tidy up `sharedDirectoryManager` (#1010) * `SharedDirectoryMoveRequest` (#1045) * `SharedDirectoryMoveResponse` (#1074) * `SharedDirectoryCreateRequest` and `SharedDirectoryCreateResponse` (#1090) * SharedDirectoryDeleteRequest and SharedDirectoryDeleteResponse (#1096) * Add warning dialog for unsupported browsers for directory sharing (#1110) * updates yarn.lock
Requires backport to v9/v10
How to test manually
webappstruewebapps/packages/teleport/src/config.ts
Line 32 in becfad3
yarn start-teleport --target=https://ec2-35-171-27-185.compute-1.amazonaws.com/What to expect
Go to the top right
...menu and clickShare Directory(X-out of the "uncaught exception" screen if you get it). The directory you select should show up in the File Explorer as a shared drive
The drive should be navigable as well should any folders within it
Trying to open a file should show you the file contents (if you open it in Notepad for example). You will be able to type into the file, and if you save the file the changes should show up on your local disk.