blob: 69750fabf588f612acf823872db9dc9af38b8774 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
using System.IO;
namespace ShiftOS.Engine.ShiftFS
{
public abstract class ShiftFsObject
{
protected ShiftFsObject(string path)
{
if (!File.Exists(Path.Combine(ShiftFs.SavePath, path)) && !Directory.Exists(Path.Combine(ShiftFs.SavePath, path)))
{
throw new FileNotFoundException();
}
}
public string Name { get; set; }
public ShiftDirectory Parent { get; protected set; }
public string FullName { get; set; }
protected string FullDiskName { get; set; }
public void Delete()
{
File.Delete(FullDiskName);
}
}
}
|