Class FileInfoExtensions
Inheritance
FileInfoExtensions
Assembly: Acoustics.Shared.dll
Syntax
public static class FileInfoExtensions
Methods
|
Improve this Doc
View Source
BaseName(FileInfo)
Declaration
public static string BaseName(this FileInfo file)
Parameters
Returns
|
Improve this Doc
View Source
Combine(DirectoryInfo, IEnumerable<String>)
Declaration
public static DirectoryInfo Combine(this DirectoryInfo directoryInfo, IEnumerable<string> str)
Parameters
Returns
|
Improve this Doc
View Source
Combine(DirectoryInfo, String[])
Declaration
public static DirectoryInfo Combine(this DirectoryInfo directoryInfo, params string[] str)
Parameters
Returns
|
Improve this Doc
View Source
CombineFile(DirectoryInfo, String[])
Declaration
public static FileInfo CombineFile(this DirectoryInfo directoryInfo, params string[] str)
Parameters
Returns
|
Improve this Doc
View Source
CombinePath(DirectoryInfo, String[])
Declaration
public static string CombinePath(this DirectoryInfo directoryInfo, params string[] str)
Parameters
Returns
|
Improve this Doc
View Source
CopyTo(FileInfo, DirectoryInfo)
Declaration
public static FileInfo CopyTo(this FileInfo source, DirectoryInfo dest)
Parameters
Returns
|
Improve this Doc
View Source
CreateParentDirectories(FileInfo)
Declaration
public static void CreateParentDirectories(this FileInfo file)
Parameters
|
Improve this Doc
View Source
Declaration
public static string FormatList(this IEnumerable<FileSystemInfo> infos)
Parameters
Returns
|
Improve this Doc
View Source
ReadAllLines(FileInfo)
Declaration
public static string[] ReadAllLines([NotNull] this FileInfo file)
Parameters
Returns
|
Improve this Doc
View Source
RefreshInfo<T>(T)
Declaration
public static T RefreshInfo<T>(this T info)
where T : FileSystemInfo
Parameters
Type |
Name |
Description |
T |
info |
|
Returns
Type Parameters
|
Improve this Doc
View Source
ToDirectoryInfo(String)
Declaration
public static DirectoryInfo ToDirectoryInfo(this string str)
Parameters
Type |
Name |
Description |
String |
str |
|
Returns
|
Improve this Doc
View Source
ToDirectoryInfo(String, String[])
Declaration
public static DirectoryInfo ToDirectoryInfo(this string str, params string[] subDirectories)
Parameters
Returns
|
Improve this Doc
View Source
ToFileInfo(String)
Declaration
public static FileInfo ToFileInfo(this string str)
Parameters
Type |
Name |
Description |
String |
str |
|
Returns
|
Improve this Doc
View Source
Touch(FileInfo)
Declaration
public static FileInfo Touch(this FileInfo info)
Parameters
Returns
|
Improve this Doc
View Source
TryCreate(DirectoryInfo)
Declaration
public static bool TryCreate(this DirectoryInfo file)
Parameters
Returns
|
Improve this Doc
View Source
TryDelete(FileSystemInfo, Boolean, String)
Declaration
public static bool TryDelete(this FileSystemInfo file, bool recursive, string message = "")
Parameters
Returns
|
Improve this Doc
View Source
TryDelete(FileSystemInfo, String)
Declaration
public static bool TryDelete(this FileSystemInfo file, string message = "")
Parameters
Returns