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

Solved DataStreamFactory does not check if the file exists when openi… #148

Closed Megaflan closed 3 years ago

Megaflan commented 3 years ago

Description

Added a !File.Exists(path) in the FromFile(string path, FileOpenMode mode) with a check that detects if you are using a Read or an Append FileOpenMode. The check is not needed in the FromFile(string path, FileOpenMode mode, long offset, long length) as the FileInfo invoke already detects if the file exists before opening, a FileNotFoundException will be thrown in both cases.

Closes #135

github-actions[bot] commented 3 years ago

:tada: This issue has been resolved in version v3.1.0 :tada:

The release is available on: