SceneGate / Yarhl

Framework for the implementation of format converters like game assets or media files
https://scenegate.github.io/Yarhl/
MIT License
60 stars 10 forks source link

Set FileOpenMode at NodeFactory.FromFile #165

Closed Kaplas80 closed 3 years ago

Kaplas80 commented 3 years ago

Description

Adds a parameter to configure the permissions at NodeFactory.FromFile and NodeFactory.FromDirectory methods.

Example

Node node = NodeFactory.FromFile(tempFile, FileOpenMode.Read);

If no parameter is passed, it defaults to FileOpenMode.ReadWrite

This closes #164