custom list function #260
-
How do I tell the client that there are 'non existent' files with the functions |
Beta Was this translation helpful? Give feedback.
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. |
Beta Was this translation helpful? Give feedback.
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.