Class MixFileHelper
Inheritance
System.Object
MixFileHelper
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: mix.heart.dll
Syntax
public static class MixFileHelper
Properties
|
Improve this Doc
View Source
CurrentDirectory
Declaration
public static string CurrentDirectory { get; set; }
Property Value
Type |
Description |
System.String |
|
Methods
|
Improve this Doc
View Source
CopyFolder(String, String)
Declaration
public static bool CopyFolder(string srcPath, string desPath)
Parameters
Type |
Name |
Description |
System.String |
srcPath |
|
System.String |
desPath |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
CreateFolderIfNotExist(String)
Declaration
public static void CreateFolderIfNotExist(string fullPath)
Parameters
Type |
Name |
Description |
System.String |
fullPath |
|
|
Improve this Doc
View Source
DeleteFile(String)
Declaration
public static bool DeleteFile(string filePath)
Parameters
Type |
Name |
Description |
System.String |
filePath |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
DeleteFolder(String)
Declaration
public static bool DeleteFolder(string folderPath)
Parameters
Type |
Name |
Description |
System.String |
folderPath |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
EmptyFolder(String)
Declaration
public static bool EmptyFolder(string folderPath)
Parameters
Type |
Name |
Description |
System.String |
folderPath |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
GetFile(String, String, String, Boolean, String)
Declaration
public static FileModel GetFile(string name, string ext, string FileFolder, bool isCreate = false, string defaultContent = null)
Parameters
Type |
Name |
Description |
System.String |
name |
|
System.String |
ext |
|
System.String |
FileFolder |
|
System.Boolean |
isCreate |
|
System.String |
defaultContent |
|
Returns
|
Improve this Doc
View Source
GetFileByFullName(String, Boolean, String)
Declaration
public static FileModel GetFileByFullName(string fullName, bool isCreate = false, string defaultContent = null)
Parameters
Type |
Name |
Description |
System.String |
fullName |
|
System.Boolean |
isCreate |
|
System.String |
defaultContent |
|
Returns
|
Improve this Doc
View Source
GetTopDirectories(String)
Declaration
public static List<string> GetTopDirectories(string folder)
Parameters
Type |
Name |
Description |
System.String |
folder |
|
Returns
Type |
Description |
System.Collections.Generic.List<System.String> |
|
|
Improve this Doc
View Source
GetTopFiles(String)
Declaration
public static List<FileModel> GetTopFiles(string folder)
Parameters
Type |
Name |
Description |
System.String |
folder |
|
Returns
Type |
Description |
System.Collections.Generic.List<FileModel> |
|
|
Improve this Doc
View Source
GetTopFolders(String)
Declaration
public static List<string> GetTopFolders(string folder)
Parameters
Type |
Name |
Description |
System.String |
folder |
|
Returns
Type |
Description |
System.Collections.Generic.List<System.String> |
|
|
Improve this Doc
View Source
Declaration
public static string SaveFile(IFormFile file, string fullPath)
Parameters
Type |
Name |
Description |
IFormFile |
file |
|
System.String |
fullPath |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
SaveFile(FileModel)
Declaration
public static bool SaveFile(FileModel file)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
UnZipFile(String, String)
Declaration
public static void UnZipFile(string filePath, string webFolder)
Parameters
Type |
Name |
Description |
System.String |
filePath |
|
System.String |
webFolder |
|
|
Improve this Doc
View Source
ZipFolder(String, String, String)
Declaration
public static string ZipFolder(string tmpPath, string outputPath, string fileName)
Parameters
Type |
Name |
Description |
System.String |
tmpPath |
|
System.String |
outputPath |
|
System.String |
fileName |
|
Returns
Type |
Description |
System.String |
|