39 lines
811 B
C#
39 lines
811 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace ZXLA
|
|
{
|
|
class Directory : FileSystemObject
|
|
{
|
|
private List<string> _childList;
|
|
|
|
public Directory(string path, int depth, bool isDisplay = true) : base(path, depth, isDisplay)
|
|
{
|
|
fileType = FileObjectType.Directory;
|
|
_childList = new List<string>();
|
|
}
|
|
|
|
public void AddChild(string child)
|
|
{
|
|
_childList.Add(child);
|
|
}
|
|
|
|
public void RemoveChild(string child)
|
|
{
|
|
_childList.Remove(child);
|
|
}
|
|
|
|
public List<string> GetChildren()
|
|
{
|
|
return _childList;
|
|
}
|
|
|
|
public void Rename(string newPath)
|
|
{
|
|
}
|
|
|
|
public void MoveTo(string newPath)
|
|
{
|
|
}
|
|
}
|
|
} |