Class PhysicalDirectory

Wrapper for the static class System.IO.Directory

Inheritance
System.Object
PhysicalDirectory
Implements
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Framework.FileSystem
Assembly: EPiServer.Framework.AspNet.dll
Version: 11.20.7
Syntax
public class PhysicalDirectory : IDirectory

Constructors

PhysicalDirectory()

Declaration
public PhysicalDirectory()

Methods

CreateDirectory(String)

Declaration
public DirectoryInfo CreateDirectory(string path)
Parameters
Type Name Description
System.String path
Returns
Type Description
System.IO.DirectoryInfo

CreateDirectory(String, DirectorySecurity)

Declaration
public DirectoryInfo CreateDirectory(string path, DirectorySecurity directorySecurity)
Parameters
Type Name Description
System.String path
System.Security.AccessControl.DirectorySecurity directorySecurity
Returns
Type Description
System.IO.DirectoryInfo

Delete(String)

Declaration
public void Delete(string path)
Parameters
Type Name Description
System.String path

Delete(String, Boolean)

Declaration
public void Delete(string path, bool recursive)
Parameters
Type Name Description
System.String path
System.Boolean recursive

Exists(String)

Declaration
public bool Exists(string path)
Parameters
Type Name Description
System.String path
Returns
Type Description
System.Boolean

GetAccessControl(String)

Declaration
public DirectorySecurity GetAccessControl(string path)
Parameters
Type Name Description
System.String path
Returns
Type Description
System.Security.AccessControl.DirectorySecurity

GetAccessControl(String, AccessControlSections)

Declaration
public DirectorySecurity GetAccessControl(string path, AccessControlSections includeSections)
Parameters
Type Name Description
System.String path
System.Security.AccessControl.AccessControlSections includeSections
Returns
Type Description
System.Security.AccessControl.DirectorySecurity

GetCreationTime(String)

Declaration
public DateTime GetCreationTime(string path)
Parameters
Type Name Description
System.String path
Returns
Type Description
System.DateTime

GetCreationTimeUtc(String)

Declaration
public DateTime GetCreationTimeUtc(string path)
Parameters
Type Name Description
System.String path
Returns
Type Description
System.DateTime

GetCurrentDirectory()

Declaration
public string GetCurrentDirectory()
Returns
Type Description
System.String

GetDirectories(String)

Declaration
public string[] GetDirectories(string path)
Parameters
Type Name Description
System.String path
Returns
Type Description
System.String[]

GetDirectories(String, String)

Declaration
public string[] GetDirectories(string path, string searchPattern)
Parameters
Type Name Description
System.String path
System.String searchPattern
Returns
Type Description
System.String[]

GetDirectories(String, String, SearchOption)

Declaration
public string[] GetDirectories(string path, string searchPattern, SearchOption searchOption)
Parameters
Type Name Description
System.String path
System.String searchPattern
System.IO.SearchOption searchOption
Returns
Type Description
System.String[]

GetDirectoryRoot(String)

Declaration
public string GetDirectoryRoot(string path)
Parameters
Type Name Description
System.String path
Returns
Type Description
System.String

GetFiles(String)

Declaration
public string[] GetFiles(string path)
Parameters
Type Name Description
System.String path
Returns
Type Description
System.String[]

GetFiles(String, String)

Declaration
public string[] GetFiles(string path, string searchPattern)
Parameters
Type Name Description
System.String path
System.String searchPattern
Returns
Type Description
System.String[]

GetFiles(String, String, SearchOption)

Declaration
public string[] GetFiles(string path, string searchPattern, SearchOption searchOption)
Parameters
Type Name Description
System.String path
System.String searchPattern
System.IO.SearchOption searchOption
Returns
Type Description
System.String[]

GetFileSystemEntries(String)

Declaration
public string[] GetFileSystemEntries(string path)
Parameters
Type Name Description
System.String path
Returns
Type Description
System.String[]

GetFileSystemEntries(String, String)

Declaration
public string[] GetFileSystemEntries(string path, string searchPattern)
Parameters
Type Name Description
System.String path
System.String searchPattern
Returns
Type Description
System.String[]

GetLastAccessTime(String)

Declaration
public DateTime GetLastAccessTime(string path)
Parameters
Type Name Description
System.String path
Returns
Type Description
System.DateTime

GetLastAccessTimeUtc(String)

Declaration
public DateTime GetLastAccessTimeUtc(string path)
Parameters
Type Name Description
System.String path
Returns
Type Description
System.DateTime

GetLastWriteTime(String)

Declaration
public DateTime GetLastWriteTime(string path)
Parameters
Type Name Description
System.String path
Returns
Type Description
System.DateTime

GetLastWriteTimeUtc(String)

Declaration
public DateTime GetLastWriteTimeUtc(string path)
Parameters
Type Name Description
System.String path
Returns
Type Description
System.DateTime

GetLogicalDrives()

Declaration
public string[] GetLogicalDrives()
Returns
Type Description
System.String[]

GetParent(String)

Declaration
public DirectoryInfo GetParent(string path)
Parameters
Type Name Description
System.String path
Returns
Type Description
System.IO.DirectoryInfo

Move(String, String)

Declaration
public void Move(string sourceDirName, string destinationDirName)
Parameters
Type Name Description
System.String sourceDirName
System.String destinationDirName

SetAccessControl(String, DirectorySecurity)

Declaration
public void SetAccessControl(string path, DirectorySecurity directorySecurity)
Parameters
Type Name Description
System.String path
System.Security.AccessControl.DirectorySecurity directorySecurity

SetCreationTime(String, DateTime)

Declaration
public void SetCreationTime(string path, DateTime creationTime)
Parameters
Type Name Description
System.String path
System.DateTime creationTime

SetCreationTimeUtc(String, DateTime)

Declaration
public void SetCreationTimeUtc(string path, DateTime creationTimeUtc)
Parameters
Type Name Description
System.String path
System.DateTime creationTimeUtc

SetCurrentDirectory(String)

Declaration
public void SetCurrentDirectory(string path)
Parameters
Type Name Description
System.String path

SetLastAccessTime(String, DateTime)

Declaration
public void SetLastAccessTime(string path, DateTime lastAccessTime)
Parameters
Type Name Description
System.String path
System.DateTime lastAccessTime

SetLastAccessTimeUtc(String, DateTime)

Declaration
public void SetLastAccessTimeUtc(string path, DateTime lastAccessTimeUtc)
Parameters
Type Name Description
System.String path
System.DateTime lastAccessTimeUtc

SetLastWriteTime(String, DateTime)

Declaration
public void SetLastWriteTime(string path, DateTime lastWriteTime)
Parameters
Type Name Description
System.String path
System.DateTime lastWriteTime

SetLastWriteTimeUtc(String, DateTime)

Declaration
public void SetLastWriteTimeUtc(string path, DateTime lastWriteTimeUtc)
Parameters
Type Name Description
System.String path
System.DateTime lastWriteTimeUtc

Implements

Extension Methods