Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update file path out-of-band #80

Open
brichet opened this issue Aug 29, 2024 · 3 comments
Open

Update file path out-of-band #80

brichet opened this issue Aug 29, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@brichet
Copy link

brichet commented Aug 29, 2024

Description

Renaming a file from the file system (not from jupyter) does not update the database.

Reproduce

Open a file in collaboration, rename it from the file system. The ContentManager is not happy because it looks for the former file path.

Renaming it from jupyterlab correctly update the file path in the database, though.

Expected behavior

The new file path to be used.

Context

Peek 2024-08-29 13-43

@krassowski
Copy link

I guess we would need to (optimally) depend on https://github.com/gorakhargosh/watchdog/ or similar. Watching files cross-platform is not easy. In the repo at the bottom there is a list of other libraries that allow for that.

@davidbrochart
Copy link
Contributor

Jupyverse uses watchfiles.

@krassowski
Copy link

Jupyverse uses watchfiles.

This package was previously named "watchgod"

Good one! Does not seem to support tracking renames yet though: samuelcolvin/watchfiles#201

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants