FileHelper Methods

HD.Common

FileHelper Methods Helper帮助文档

The FileHelper type exposes the following members.

Methods

  Name Description
Public method Static member CopyDir
指定文件夹下面的所有内容copy到目标文件夹下面
Public method Static member DeleteFolder
递归删除文件夹目录及文件
Public method Equals (Inherited from Object.)
Public method Static member FileAdd
追加文件
Public method Static member FileCoppy
拷贝文件
Public method Static member FileCreate
Public method Static member FileDel
删除文件
Public method Static member FileMove
移动文件
Protected method Finalize (Inherited from Object.)
Public method Static member FolderCreate(String)
创建文件夹
Public method Static member FolderCreate(String, String)
在当前目录下创建目录
Public method Static member GetDirectoryLength
获取文件夹大小
Public method Static member GetFileAttibe
获取指定文件详细属性
Public method Static member GetFoldAll(String)
获取指定文件夹下所有子目录及文件
Public method Static member GetFoldAll(String, String, String)
获取指定文件夹下所有子目录及文件(下拉框形)
Public method GetHashCode (Inherited from Object.)
Public method Static member GetPostfixStr
取后缀名
Public method GetType (Inherited from Object.)
Public method Static member ListTreeShow(DirectoryInfo, Int32, String)
获取指定文件夹下所有子目录及文件函数
Public method Static member ListTreeShow(DirectoryInfo, Int32, String, String)
获取指定文件夹下所有子目录及文件函数
Protected method MemberwiseClone (Inherited from Object.)
Protected method Read_Txt
Public method Static member ReadFile
读文件
Public method ToString (Inherited from Object.)
Protected method Write_Txt
Public method Static member WriteFile
写文件
Top
See Also

Reference