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
Is it possible to add a function before or after a staticPath file has been served? For instance to facilitate logging of what files have been server (conscious I may be missing something obvious, my apologies)
The text was updated successfully, but these errors were encountered:
Sorry, there isn't a way to do that with staticPath. The staticPath functionality was added for performance reasons -- it serves the files on a separate thread from the main R thread, and calling an R function before serving the files would require synchronization with the R thread, which would add complexity and slow things down.
If you want to do logging for serving files, you can do it by not using staticPath, and instead have your call method handle file requests in R.
Is it possible to add a function before or after a staticPath file has been served? For instance to facilitate logging of what files have been server (conscious I may be missing something obvious, my apologies)
The text was updated successfully, but these errors were encountered: