mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-08 23:33:03 +01:00
update sharpcifs
This commit is contained in:
@@ -3,18 +3,18 @@ using System.IO;
|
||||
namespace SharpCifs.Util.Sharpen
|
||||
{
|
||||
public class FileInputStream : InputStream
|
||||
{
|
||||
public FileInputStream(FilePath file) : this(file.GetPath())
|
||||
{
|
||||
}
|
||||
{
|
||||
public FileInputStream (FilePath file) : this(file.GetPath ())
|
||||
{
|
||||
}
|
||||
|
||||
public FileInputStream(string file)
|
||||
{
|
||||
if (!File.Exists(file))
|
||||
{
|
||||
throw new FileNotFoundException("File not found", file);
|
||||
}
|
||||
Wrapped = new FileStream(file, FileMode.Open, FileAccess.Read, FileShare.ReadWrite);
|
||||
}
|
||||
}
|
||||
public FileInputStream (string file)
|
||||
{
|
||||
if (!File.Exists (file)) {
|
||||
throw new FileNotFoundException ("File not found", file);
|
||||
}
|
||||
Wrapped = new FileStream (file, FileMode.Open, FileAccess.Read, FileShare.ReadWrite);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user