<PackageReference Include="System.IO.FileSystem.Primitives" Version="4.0.1-beta-23409" />

FileAccess

public enum FileAccess
Defines constants for read, write, or read/write access to a file.
Read = 1

Read access to the file. Data can be read from the file. Combine with Write for read/write access.

Read and write access to the file. Data can be written to and read from the file.

Write = 2

Write access to the file. Data can be written to the file. Combine with Read for read/write access.