Skip to content

Commit 4edd731

Browse files
committed
add handler for saving file operation
1 parent 11585dc commit 4edd731

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

jupyter_drives/handlers.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,12 @@ async def patch(self, path: str = "", drive: str = ""):
8484
result = await self._manager.rename_file(drive, path, **body)
8585
self.finish(result)
8686

87+
@tornado.web.authenticated
88+
async def put(self, drive: str = "", path: str = ""):
89+
body = self.get_json_body()
90+
result = await self._manager.save_file(drive, path, **body)
91+
self.finish(result)
92+
8793
handlers = [
8894
("drives", ListJupyterDrivesHandler)
8995
]

0 commit comments

Comments
 (0)