314 lines
18 KiB
C#
314 lines
18 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using System.Runtime.InteropServices;
|
|
using System.Runtime.Serialization;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.IO
|
|
{
|
|
/// <summary>Exposes instance methods for creating, moving, and enumerating through directories and subdirectories. This class cannot be inherited.</summary>
|
|
// Token: 0x020002B2 RID: 690
|
|
[Token(Token = "0x20002B2")]
|
|
[ComVisible(true)]
|
|
[Serializable]
|
|
public sealed class DirectoryInfo : FileSystemInfo
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.IO.DirectoryInfo" /> class on the specified path.</summary>
|
|
/// <param name="path">A string specifying the path on which to create the <see langword="DirectoryInfo" />.</param>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="path" /> is <see langword="null" />.</exception>
|
|
/// <exception cref="T:System.Security.SecurityException">The caller does not have the required permission.</exception>
|
|
/// <exception cref="T:System.ArgumentException">
|
|
/// <paramref name="path" /> contains invalid characters such as ", <, >, or |.</exception>
|
|
/// <exception cref="T:System.IO.PathTooLongException">The specified path, file name, or both exceed the system-defined maximum length.</exception>
|
|
// Token: 0x06001958 RID: 6488 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001958")]
|
|
[Address(RVA = "0x2BAA2F0", Offset = "0x2BA92F0", VA = "0x182BAA2F0")]
|
|
public DirectoryInfo(string path)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06001959 RID: 6489 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001959")]
|
|
[Address(RVA = "0x2BAA330", Offset = "0x2BA9330", VA = "0x182BAA330")]
|
|
internal DirectoryInfo(string path, bool simpleOriginalPath)
|
|
{
|
|
}
|
|
|
|
// Token: 0x0600195A RID: 6490 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x600195A")]
|
|
[Address(RVA = "0x2BAA300", Offset = "0x2BA9300", VA = "0x182BAA300")]
|
|
private DirectoryInfo(SerializationInfo info, StreamingContext context)
|
|
{
|
|
}
|
|
|
|
// Token: 0x0600195B RID: 6491 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x600195B")]
|
|
[Address(RVA = "0x2BA9EB0", Offset = "0x2BA8EB0", VA = "0x182BA9EB0")]
|
|
private void Initialize()
|
|
{
|
|
}
|
|
|
|
/// <summary>Gets a value indicating whether the directory exists.</summary>
|
|
/// <returns>
|
|
/// <see langword="true" /> if the directory exists; otherwise, <see langword="false" />.</returns>
|
|
// Token: 0x1700030D RID: 781
|
|
// (get) Token: 0x0600195C RID: 6492 RVA: 0x00010CF8 File Offset: 0x0000EEF8
|
|
[Token(Token = "0x1700030D")]
|
|
public override bool Exists
|
|
{
|
|
[Token(Token = "0x600195C")]
|
|
[Address(RVA = "0x2BAA560", Offset = "0x2BA9560", VA = "0x182BAA560", Slot = "9")]
|
|
get
|
|
{
|
|
return default(bool);
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets the name of this <see cref="T:System.IO.DirectoryInfo" /> instance.</summary>
|
|
/// <returns>The directory name.</returns>
|
|
// Token: 0x1700030E RID: 782
|
|
// (get) Token: 0x0600195D RID: 6493 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x1700030E")]
|
|
public override string Name
|
|
{
|
|
[Token(Token = "0x600195D")]
|
|
[Address(RVA = "0x417720", Offset = "0x416720", VA = "0x180417720", Slot = "8")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets the parent directory of a specified subdirectory.</summary>
|
|
/// <returns>The parent directory, or <see langword="null" /> if the path is null or if the file path denotes a root (such as "\", "C:", or * "\\server\share").</returns>
|
|
/// <exception cref="T:System.Security.SecurityException">The caller does not have the required permission.</exception>
|
|
// Token: 0x1700030F RID: 783
|
|
// (get) Token: 0x0600195E RID: 6494 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x1700030F")]
|
|
public DirectoryInfo Parent
|
|
{
|
|
[Token(Token = "0x600195E")]
|
|
[Address(RVA = "0x2BAA5A0", Offset = "0x2BA95A0", VA = "0x182BAA5A0")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/// <summary>Creates a directory.</summary>
|
|
/// <exception cref="T:System.IO.IOException">The directory cannot be created.</exception>
|
|
// Token: 0x0600195F RID: 6495 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x600195F")]
|
|
[Address(RVA = "0x2BA8EF0", Offset = "0x2BA7EF0", VA = "0x182BA8EF0")]
|
|
public void Create()
|
|
{
|
|
}
|
|
|
|
/// <summary>Returns a file list from the current directory.</summary>
|
|
/// <returns>An array of type <see cref="T:System.IO.FileInfo" />.</returns>
|
|
/// <exception cref="T:System.IO.DirectoryNotFoundException">The path is invalid, such as being on an unmapped drive.</exception>
|
|
// Token: 0x06001960 RID: 6496 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x6001960")]
|
|
[Address(RVA = "0x2BA9970", Offset = "0x2BA8970", VA = "0x182BA9970")]
|
|
public FileInfo[] GetFiles()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Returns a file list from the current directory matching the given search pattern.</summary>
|
|
/// <param name="searchPattern">The search string to match against the names of files. This parameter can contain a combination of valid literal path and wildcard (* and ?) characters, but it doesn't support regular expressions.</param>
|
|
/// <returns>An array of type <see cref="T:System.IO.FileInfo" />.</returns>
|
|
/// <exception cref="T:System.ArgumentException">
|
|
/// <paramref name="searchPattern" /> contains one or more invalid characters defined by the <see cref="M:System.IO.Path.GetInvalidPathChars" /> method.</exception>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="searchPattern" /> is <see langword="null" />.</exception>
|
|
/// <exception cref="T:System.IO.DirectoryNotFoundException">The path is invalid (for example, it is on an unmapped drive).</exception>
|
|
/// <exception cref="T:System.Security.SecurityException">The caller does not have the required permission.</exception>
|
|
// Token: 0x06001961 RID: 6497 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x6001961")]
|
|
[Address(RVA = "0x2BA9D20", Offset = "0x2BA8D20", VA = "0x182BA9D20")]
|
|
public FileInfo[] GetFiles(string searchPattern)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Returns the subdirectories of the current directory.</summary>
|
|
/// <returns>An array of <see cref="T:System.IO.DirectoryInfo" /> objects.</returns>
|
|
/// <exception cref="T:System.IO.DirectoryNotFoundException">The path encapsulated in the <see cref="T:System.IO.DirectoryInfo" /> object is invalid, such as being on an unmapped drive.</exception>
|
|
/// <exception cref="T:System.Security.SecurityException">The caller does not have the required permission.</exception>
|
|
/// <exception cref="T:System.UnauthorizedAccessException">The caller does not have the required permission.</exception>
|
|
// Token: 0x06001962 RID: 6498 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x6001962")]
|
|
[Address(RVA = "0x2BA9000", Offset = "0x2BA8000", VA = "0x182BA9000")]
|
|
public DirectoryInfo[] GetDirectories()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Returns an array of directories in the current <see cref="T:System.IO.DirectoryInfo" /> matching the given search criteria.</summary>
|
|
/// <param name="searchPattern">The search string to match against the names of directories. This parameter can contain a combination of valid literal path and wildcard (* and ?) characters, but it doesn't support regular expressions.</param>
|
|
/// <returns>An array of type <see langword="DirectoryInfo" /> matching <paramref name="searchPattern" />.</returns>
|
|
/// <exception cref="T:System.ArgumentException">
|
|
/// <paramref name="searchPattern" /> contains one or more invalid characters defined by the <see cref="M:System.IO.Path.GetInvalidPathChars" /> method.</exception>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="searchPattern" /> is <see langword="null" />.</exception>
|
|
/// <exception cref="T:System.IO.DirectoryNotFoundException">The path encapsulated in the <see langword="DirectoryInfo" /> object is invalid (for example, it is on an unmapped drive).</exception>
|
|
/// <exception cref="T:System.UnauthorizedAccessException">The caller does not have the required permission.</exception>
|
|
// Token: 0x06001963 RID: 6499 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x6001963")]
|
|
[Address(RVA = "0x2BA91B0", Offset = "0x2BA81B0", VA = "0x182BA91B0")]
|
|
public DirectoryInfo[] GetDirectories(string searchPattern)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Returns an array of strongly typed <see cref="T:System.IO.FileSystemInfo" /> entries representing all the files and subdirectories in a directory.</summary>
|
|
/// <returns>An array of strongly typed <see cref="T:System.IO.FileSystemInfo" /> entries.</returns>
|
|
/// <exception cref="T:System.IO.DirectoryNotFoundException">The path is invalid (for example, it is on an unmapped drive).</exception>
|
|
// Token: 0x06001964 RID: 6500 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x6001964")]
|
|
[Address(RVA = "0x2BA95B0", Offset = "0x2BA85B0", VA = "0x182BA95B0")]
|
|
public FileSystemInfo[] GetFileSystemInfos()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Retrieves an array of strongly typed <see cref="T:System.IO.FileSystemInfo" /> objects representing the files and subdirectories that match the specified search criteria.</summary>
|
|
/// <param name="searchPattern">The search string to match against the names of directories and files. This parameter can contain a combination of valid literal path and wildcard (* and ?) characters, but it doesn't support regular expressions.</param>
|
|
/// <returns>An array of strongly typed <see langword="FileSystemInfo" /> objects matching the search criteria.</returns>
|
|
/// <exception cref="T:System.ArgumentException">
|
|
/// <paramref name="searchPattern" /> contains one or more invalid characters defined by the <see cref="M:System.IO.Path.GetInvalidPathChars" /> method.</exception>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="searchPattern" /> is <see langword="null" />.</exception>
|
|
/// <exception cref="T:System.IO.DirectoryNotFoundException">The specified path is invalid (for example, it is on an unmapped drive).</exception>
|
|
/// <exception cref="T:System.Security.SecurityException">The caller does not have the required permission.</exception>
|
|
// Token: 0x06001965 RID: 6501 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x6001965")]
|
|
[Address(RVA = "0x2BA94A0", Offset = "0x2BA84A0", VA = "0x182BA94A0")]
|
|
public FileSystemInfo[] GetFileSystemInfos(string searchPattern)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Retrieves an array of <see cref="T:System.IO.FileSystemInfo" /> objects that represent the files and subdirectories matching the specified search criteria.</summary>
|
|
/// <param name="searchPattern">The search string to match against the names of directories and filesa. This parameter can contain a combination of valid literal path and wildcard (* and ?) characters, but it doesn't support regular expressions.</param>
|
|
/// <param name="searchOption">One of the enumeration values that specifies whether the search operation should include only the current directory or all subdirectories. The default value is <see cref="F:System.IO.SearchOption.TopDirectoryOnly" />.</param>
|
|
/// <returns>An array of file system entries that match the search criteria.</returns>
|
|
/// <exception cref="T:System.ArgumentException">
|
|
/// <paramref name="searchPattern" /> contains one or more invalid characters defined by the <see cref="M:System.IO.Path.GetInvalidPathChars" /> method.</exception>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="searchPattern" /> is <see langword="null" />.</exception>
|
|
/// <exception cref="T:System.ArgumentOutOfRangeException">
|
|
/// <paramref name="searchOption" /> is not a valid <see cref="T:System.IO.SearchOption" /> value.</exception>
|
|
/// <exception cref="T:System.IO.DirectoryNotFoundException">The specified path is invalid (for example, it is on an unmapped drive).</exception>
|
|
/// <exception cref="T:System.Security.SecurityException">The caller does not have the required permission.</exception>
|
|
// Token: 0x06001966 RID: 6502 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x6001966")]
|
|
[Address(RVA = "0x2BA9340", Offset = "0x2BA8340", VA = "0x182BA9340")]
|
|
public FileSystemInfo[] GetFileSystemInfos(string searchPattern, SearchOption searchOption)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x06001967 RID: 6503 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001967")]
|
|
[Address(RVA = "0x2BAA140", Offset = "0x2BA9140", VA = "0x182BAA140")]
|
|
private void InternalGetFileSystemInfos(string searchPattern, SearchOption searchOption, List<FileSystemInfo> infos)
|
|
{
|
|
}
|
|
|
|
/// <summary>Deletes this <see cref="T:System.IO.DirectoryInfo" /> if it is empty.</summary>
|
|
/// <exception cref="T:System.UnauthorizedAccessException">The directory contains a read-only file.</exception>
|
|
/// <exception cref="T:System.IO.DirectoryNotFoundException">The directory described by this <see cref="T:System.IO.DirectoryInfo" /> object does not exist or could not be found.</exception>
|
|
/// <exception cref="T:System.IO.IOException">The directory is not empty.
|
|
/// -or-
|
|
/// The directory is the application's current working directory.
|
|
/// -or-
|
|
/// There is an open handle on the directory, and the operating system is Windows XP or earlier. This open handle can result from enumerating directories. For more information, see How to: Enumerate Directories and Files.</exception>
|
|
/// <exception cref="T:System.Security.SecurityException">The caller does not have the required permission.</exception>
|
|
// Token: 0x06001968 RID: 6504 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001968")]
|
|
[Address(RVA = "0x2BA8F90", Offset = "0x2BA7F90", VA = "0x182BA8F90", Slot = "10")]
|
|
public override void Delete()
|
|
{
|
|
}
|
|
|
|
/// <summary>Deletes this instance of a <see cref="T:System.IO.DirectoryInfo" />, specifying whether to delete subdirectories and files.</summary>
|
|
/// <param name="recursive">
|
|
/// <see langword="true" /> to delete this directory, its subdirectories, and all files; otherwise, <see langword="false" />.</param>
|
|
/// <exception cref="T:System.UnauthorizedAccessException">The directory contains a read-only file.</exception>
|
|
/// <exception cref="T:System.IO.DirectoryNotFoundException">The directory described by this <see cref="T:System.IO.DirectoryInfo" /> object does not exist or could not be found.</exception>
|
|
/// <exception cref="T:System.IO.IOException">The directory is read-only.
|
|
/// -or-
|
|
/// The directory contains one or more files or subdirectories and <paramref name="recursive" /> is <see langword="false" />.
|
|
/// -or-
|
|
/// The directory is the application's current working directory.
|
|
/// -or-
|
|
/// There is an open handle on the directory or on one of its files, and the operating system is Windows XP or earlier. This open handle can result from enumerating directories and files. For more information, see How to: Enumerate Directories and Files.</exception>
|
|
/// <exception cref="T:System.Security.SecurityException">The caller does not have the required permission.</exception>
|
|
// Token: 0x06001969 RID: 6505 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001969")]
|
|
[Address(RVA = "0x2BA8F00", Offset = "0x2BA7F00", VA = "0x182BA8F00")]
|
|
public void Delete(bool recursive)
|
|
{
|
|
}
|
|
|
|
/// <summary>Returns the original path that was passed by the user.</summary>
|
|
/// <returns>The original path that was passed by the user.</returns>
|
|
// Token: 0x0600196A RID: 6506 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x600196A")]
|
|
[Address(RVA = "0x4936E0", Offset = "0x4926E0", VA = "0x1804936E0", Slot = "3")]
|
|
public override string ToString()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x0600196B RID: 6507 RVA: 0x00010D10 File Offset: 0x0000EF10
|
|
[Token(Token = "0x600196B")]
|
|
[Address(RVA = "0x2BA96E0", Offset = "0x2BA86E0", VA = "0x182BA96E0")]
|
|
internal int GetFilesSubdirs(ArrayList l, string pattern)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
/// <summary>Returns a file list from the current directory matching the given search pattern and using a value to determine whether to search subdirectories.</summary>
|
|
/// <param name="searchPattern">The search string to match against the names of files. This parameter can contain a combination of valid literal path and wildcard (* and ?) characters, but it doesn't support regular expressions.</param>
|
|
/// <param name="searchOption">One of the enumeration values that specifies whether the search operation should include only the current directory or all subdirectories.</param>
|
|
/// <returns>An array of type <see cref="T:System.IO.FileInfo" />.</returns>
|
|
/// <exception cref="T:System.ArgumentException">
|
|
/// <paramref name="searchPattern" /> contains one or more invalid characters defined by the <see cref="M:System.IO.Path.GetInvalidPathChars" /> method.</exception>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="searchPattern" /> is <see langword="null" />.</exception>
|
|
/// <exception cref="T:System.ArgumentOutOfRangeException">
|
|
/// <paramref name="searchOption" /> is not a valid <see cref="T:System.IO.SearchOption" /> value.</exception>
|
|
/// <exception cref="T:System.IO.DirectoryNotFoundException">The path is invalid (for example, it is on an unmapped drive).</exception>
|
|
/// <exception cref="T:System.Security.SecurityException">The caller does not have the required permission.</exception>
|
|
// Token: 0x0600196C RID: 6508 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x600196C")]
|
|
[Address(RVA = "0x2BA99B0", Offset = "0x2BA89B0", VA = "0x182BA99B0")]
|
|
public FileInfo[] GetFiles(string searchPattern, SearchOption searchOption)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x0600196D RID: 6509 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x600196D")]
|
|
[Address(RVA = "0x2BA8D80", Offset = "0x2BA7D80", VA = "0x182BA8D80")]
|
|
internal void CheckPath(string path)
|
|
{
|
|
}
|
|
|
|
// Token: 0x04000D56 RID: 3414
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x60")]
|
|
[Token(Token = "0x4000D56")]
|
|
private string current;
|
|
|
|
// Token: 0x04000D57 RID: 3415
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x68")]
|
|
[Token(Token = "0x4000D57")]
|
|
private string parent;
|
|
}
|
|
}
|