Skip to content

Commit

Permalink
Final fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
scottbilas committed Mar 29, 2024
1 parent 2ef1794 commit aa3202a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Core/NiceIO_Ext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -218,10 +218,10 @@ public NPath[] SafeDirectories(bool recurse = false) =>
public NPath[] SafeDirectories(string filter, bool recurse = false) =>
DirectoryExists() ? Directories(filter, recurse) : [];

public static Stream SharedOpenRead(string path) =>
File.Open(path, FileMode.Open, FileAccess.Read, FileShare.ReadWrite | FileShare.Delete);
public static Stream SharedOpenReadWrite(string path) =>
File.Open(path, FileMode.Open, FileAccess.ReadWrite, FileShare.ReadWrite | FileShare.Delete);
public static StreamReader SharedOpenReader(string path) =>
new(SharedOpenRead(path));
public Stream OpenReadShared() =>
File.Open(ToString(SlashMode.Native), FileMode.Open, FileAccess.Read, FileShare.ReadWrite | FileShare.Delete);
public Stream OpenReadWriteShared() =>
File.Open(ToString(SlashMode.Native), FileMode.Open, FileAccess.ReadWrite, FileShare.ReadWrite | FileShare.Delete);
public StreamReader OpenReaderShared() =>
new(OpenReadShared());
}

0 comments on commit aa3202a

Please sign in to comment.