mirror of https://github.com/SixLabors/ImageSharp
42 changed files with 48 additions and 144 deletions
@ -1,30 +1,19 @@ |
|||||
// Copyright (c) Six Labors and contributors.
|
// Copyright (c) Six Labors and contributors.
|
||||
// Licensed under the Apache License, Version 2.0.
|
// Licensed under the Apache License, Version 2.0.
|
||||
|
|
||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
using System.IO; |
using System.IO; |
||||
using System.Text; |
|
||||
|
|
||||
namespace SixLabors.ImageSharp.IO |
namespace SixLabors.ImageSharp.IO |
||||
{ |
{ |
||||
#if !NETSTANDARD1_1
|
|
||||
/// <summary>
|
/// <summary>
|
||||
/// A wrapper around the local File apis.
|
/// A wrapper around the local File apis.
|
||||
/// </summary>
|
/// </summary>
|
||||
internal class LocalFileSystem : IFileSystem |
internal class LocalFileSystem : IFileSystem |
||||
{ |
{ |
||||
/// <inheritdoc/>
|
/// <inheritdoc/>
|
||||
public Stream OpenRead(string path) |
public Stream OpenRead(string path) => File.OpenRead(path); |
||||
{ |
|
||||
return File.OpenRead(path); |
|
||||
} |
|
||||
|
|
||||
/// <inheritdoc/>
|
/// <inheritdoc/>
|
||||
public Stream Create(string path) |
public Stream Create(string path) => File.Create(path); |
||||
{ |
|
||||
return File.Create(path); |
|
||||
} |
|
||||
} |
} |
||||
#endif
|
} |
||||
} |
|
||||
Loading…
Reference in new issue