You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For example: readdir(path) gives all files in a dir. @readdir(path) would return the same, but automatically re-run if something changed! This would be a super simple API for file watching!
For example, a dropdown menu of all files in a directory that automatically updates the list of options:
@bind filename Select(@readdir("exports"))
The text was updated successfully, but these errors were encountered:
Besides filesystem functions, there might be more functions from Base that we could make "auto-watching". e.g. @download could poll the headers of a URL resource (like Etag or Created) and re-download when something changed. @length(xs) could re-run when you call push!(xs,123)...
We could use PlutoHooks and file watching to create auto-updating versions of lots of filesystem functions from Base! https://docs.julialang.org/en/v1/base/file/#Base.Filesystem.readdir
For example:
readdir(path)
gives all files in a dir.@readdir(path)
would return the same, but automatically re-run if something changed! This would be a super simple API for file watching!For example, a dropdown menu of all files in a directory that automatically updates the list of options:
The text was updated successfully, but these errors were encountered: