📄 directory.cs
字号:
using System;
namespace SourceFtp.FileSystem
{
/// <summary>
/// Summary description for Directory.
/// </summary>
public class Directory
{
private ILibrary m_Library;
private object m_InternalTag;
public Directory(ILibrary p_Library, object p_InternalTag)
{
m_Library = p_Library;
m_InternalTag = p_InternalTag;
}
public object InternalTag
{
get{return m_InternalTag;}
}
public string Name
{
get{return m_Library.GetDirectoryName(this);}
}
public string FullPath
{
get{return m_Library.GetDirectoryFullPath(this);}
}
public FileCollection Files
{
get{return m_Library.GetFileList(this);}
}
public DirectoryCollection SubDirs
{
get{return m_Library.GetSubDirectoryList(this);}
}
public void Rename(string p_NewName)
{
m_Library.RenameDirectory(this,p_NewName);
}
public void Remove()
{
m_Library.RemoveSubDirectory(this);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -