Skip to content

Commit

Permalink
update references from 'data_dir' to 'contents_dir' in application sp…
Browse files Browse the repository at this point in the history
…ecific code
  • Loading branch information
Austin Raney authored and Austin Raney committed Sep 27, 2021
1 parent 9f0a43a commit c40865a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion hydroshare_jupyter_sync/session_struct.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ def create_sync_struct(
event_handler = _event_handler_factory(res)

# bind handler to observer
watcher = observer.schedule(event_handler, res.data_path, recursive=True)
watcher = observer.schedule(
event_handler, res.contents_path, recursive=True
)

fs_observers[res_id] = watcher

Expand Down
2 changes: 1 addition & 1 deletion hydroshare_jupyter_sync/session_sync_event_listeners.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def _add_resource_to_agg_map_and_create_watcher(self, resource_id):

# bind handler to observer
watcher = self.observer.schedule(
event_handler, res.data_path, recursive=True
event_handler, res.contents_path, recursive=True
)

self.fs_observers[resource_id] = watcher

0 comments on commit c40865a

Please sign in to comment.