Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

45 lines (37 sloc) 0.749 kB
using System;
using System.IO;
namespace Eto.IO
{
public class VirtualFileInfo : EtoFileInfo
{
string file;
VirtualDirectoryInfo parent;
public VirtualFileInfo(VirtualDirectoryInfo parent, string file)
{
this.parent = parent;
this.file = file;
}
public override bool ReadOnly {
get {
return true;
}
}
public override string FullName
{
get { return Path.Combine(parent.FullName, file); }
}
public override Stream Open(FileMode fileMode, FileAccess fileAccess, FileShare fileShare)
{
return parent.OpenRead(file);
}
public override void Delete ()
{
throw new NotImplementedException ();
}
public override EtoDirectoryInfo Directory {
get {
return parent;
}
}
}
}
Jump to Line
Something went wrong with that request. Please try again.