Show / Hide Table of Contents

Class DirectoryHelper

Inheritance
object
DirectoryHelper
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.Abp.IO
Assembly: Volo.Abp.Core.dll
Syntax
public static class DirectoryHelper

Methods

ChangeCurrentDirectory(string)

Declaration
public static IDisposable ChangeCurrentDirectory(string targetDirectory)
Parameters
Type Name Description
string targetDirectory
Returns
Type Description
IDisposable

CreateIfNotExists(DirectoryInfo)

Declaration
public static void CreateIfNotExists(DirectoryInfo directory)
Parameters
Type Name Description
DirectoryInfo directory

CreateIfNotExists(string)

Declaration
public static void CreateIfNotExists(string directory)
Parameters
Type Name Description
string directory

DeleteIfExists(string)

Declaration
public static void DeleteIfExists(string directory)
Parameters
Type Name Description
string directory

DeleteIfExists(string, bool)

Declaration
public static void DeleteIfExists(string directory, bool recursive)
Parameters
Type Name Description
string directory
bool recursive

IsSubDirectoryOf(DirectoryInfo, DirectoryInfo)

Declaration
public static bool IsSubDirectoryOf(DirectoryInfo parentDirectory, DirectoryInfo childDirectory)
Parameters
Type Name Description
DirectoryInfo parentDirectory
DirectoryInfo childDirectory
Returns
Type Description
bool

IsSubDirectoryOf(string, string)

Declaration
public static bool IsSubDirectoryOf(string parentDirectoryPath, string childDirectoryPath)
Parameters
Type Name Description
string parentDirectoryPath
string childDirectoryPath
Returns
Type Description
bool
In this article
Back to top Powered by Volosoft