Repository navigation
custom list function #260
|
How do I tell the client that there are 'non existent' files with the functions |
Answered by
matt-forster
Nov 30, 2021
Replies: 1 comment
|
You'd have to return that file as a dynamic addition to the list/read/ get functions - probably handling that filename at the time of those calls specifically, and return the information for the file that way. That is pretty easy to do, but you'll have to make sure you return the correct types - using something like https://github.com/streamich/memfs helps with that. |
0 replies
Answer selected by
antonilol
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You'd have to return that file as a dynamic addition to the list/read/ get functions - probably handling that filename at the time of those calls specifically, and return the information for the file that way.
That is pretty easy to do, but you'll have to make sure you return the correct types - using something like https://github.com/streamich/memfs helps with that.