Commit 718604cf authored by Benjamin Fischer's avatar Benjamin Fischer

[fs] FSController.getfile: added watch_id support

parent da27efbb
......@@ -58,6 +58,14 @@ class FSController(AbstractController):
if not stat.S_ISREG(stats.st_mode):
raise cherrypy.HTTPError(404, "Not a File!")
if "watch_id" in kwargs:
fs.watch(
path,
window_id=self.get('window_id'),
view_id=self.get('view_id'),
watch_id=kwargs["watch_id"],
)
# Set the Last-Modified response header, so that
# modified-since validation code can work.
headers = cherrypy.response.headers
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment