Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZlpFileInfo OpenRead or OpenWrite unexpected scenario #43

Open
MustafaDaoud90 opened this issue Jul 27, 2022 · 0 comments
Open

ZlpFileInfo OpenRead or OpenWrite unexpected scenario #43

MustafaDaoud90 opened this issue Jul 27, 2022 · 0 comments

Comments

@MustafaDaoud90
Copy link

MustafaDaoud90 commented Jul 27, 2022

when use ZlpFileInfo(path).OpenRead() or ZlpFileInfo(path).OpenWrite() when pass the file path does not exist, it will create a new file with the same path and file name provided, this is wrong does not meet the expected as System.IO.File.Open(path, FileMode.Open, System.IO.FileAccess.Read) or System.IO.File.Open(path, FileMode.Open, System.IO.FileAccess.ReadWrite).

but when using System.IO.File.Open(path, FileMode.Open, System.IO.FileAccess.Read) and pass file path does not exist will be return exception could not find the path provided.

I need the same as System.IO.File.Open(path, FileMode.Open, System.IO.FileAccess.Read) if possible.

Repository owner deleted a comment from trycache-npe-lab Jul 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant