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
I'm adding a MemoryRandomAccessFile class (PR dart-archive/file.dart#136). The current implementation does not do anything special to honor file system permissions. I have not looked closely at MemoryFile, but I suspect that it doesn't either.
Admittedly, file permissions are not very meaningful for an ephemeral MemoryFileSystem that is local to the running application; anything in it is something that the application put there, so it implicitly has permission to read or write or do whatever it wants.
However, honoring file permissions would improve testing fidelity (i.e., verifying that an application would behave correctly if permission errors are encountered). Note that dart:io currently provides no mechanism to modify permissions (see dart-lang/sdk#15078), so MemoryFileSystem would need to provide its own.
The text was updated successfully, but these errors were encountered:
I'm adding a
MemoryRandomAccessFile
class (PR dart-archive/file.dart#136). The current implementation does not do anything special to honor file system permissions. I have not looked closely atMemoryFile
, but I suspect that it doesn't either.Admittedly, file permissions are not very meaningful for an ephemeral
MemoryFileSystem
that is local to the running application; anything in it is something that the application put there, so it implicitly has permission to read or write or do whatever it wants.However, honoring file permissions would improve testing fidelity (i.e., verifying that an application would behave correctly if permission errors are encountered). Note that
dart:io
currently provides no mechanism to modify permissions (see dart-lang/sdk#15078), soMemoryFileSystem
would need to provide its own.The text was updated successfully, but these errors were encountered: