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
Community devs often need to access the file system to complete certain operations, such as opening a folder for users to add or delete files, outputting logs to a file, and so on.
So a PluginFS API is needed, and it should be plugin scoped meaning that a plugin only have permission on it's own folder. In this case top-level js will not have any permission because it don't have its own folder.
Actually I've done some job on that using std::filesystem from C++17, so I think if is ok we can move to C++17 to gain more convenience and improved cross-platform compatibility.
PluginFS.read
PluginFS.write
PluginFS.mkdir
PluginFS.stat
PluginFS.ls
PluginFS.rm
Scoped filesystem
The text was updated successfully, but these errors were encountered:
Community devs often need to access the file system to complete certain operations, such as opening a folder for users to add or delete files, outputting logs to a file, and so on.
So a PluginFS API is needed, and it should be plugin scoped meaning that a plugin only have permission on it's own folder.
In this case top-level js will not have any permission because it don't have its own folder.
Actually I've done some job on that using
std::filesystem
from C++17, so I think if is ok we can move to C++17 to gain more convenience and improved cross-platform compatibility.The text was updated successfully, but these errors were encountered: