mirror of https://github.com/abpframework/abp.git
csharpabpc-sharpframeworkblazoraspnet-coredotnet-coreaspnetcorearchitecturesaasdomain-driven-designangularmulti-tenancy
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
775 B
33 lines
775 B
using System;
|
|
using System.IO;
|
|
using Microsoft.Extensions.FileProviders;
|
|
|
|
namespace Volo.Abp.VirtualFileSystem
|
|
{
|
|
public class VirtualDirectoryFileInfo : IFileInfo
|
|
{
|
|
public bool Exists => true;
|
|
|
|
public long Length => 0;
|
|
|
|
public string PhysicalPath { get; }
|
|
|
|
public string Name { get; }
|
|
|
|
public DateTimeOffset LastModified { get; }
|
|
|
|
public bool IsDirectory => true;
|
|
|
|
public VirtualDirectoryFileInfo(string physicalPath, string name, DateTimeOffset lastModified)
|
|
{
|
|
PhysicalPath = physicalPath;
|
|
Name = name;
|
|
LastModified = lastModified;
|
|
}
|
|
|
|
public Stream CreateReadStream()
|
|
{
|
|
throw new InvalidOperationException();
|
|
}
|
|
}
|
|
}
|