UPB-FILS-SdE2 / questions

0 stars 1 forks source link

[filesystem] Clarify `create` command requirement #112

Closed popescuatopg closed 7 months ago

popescuatopg commented 7 months ago

The create command is documented as opening a file (and creating it if it doesn't exist) with read-only permissions, while also taking a PermissionsMode argument. Does the function's signature take precedence over the command's requirement in this case, or not?

alexandruradovici commented 7 months ago

The PermissionsMode parameter defines the file's permissions, not the opening permissions.

popescuatopg commented 7 months ago

Much thanks, that clarified it for me.