Files
2026-04-10 22:50:51 +02:00

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: 0x020002AB RID: 683
[Token(Token = "0x20002AB")]
[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 ", &lt;, &gt;, or |.</exception>
/// <exception cref="T:System.IO.PathTooLongException">The specified path, file name, or both exceed the system-defined maximum length.</exception>
// Token: 0x06001917 RID: 6423 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001917")]
[Address(RVA = "0x29328F0", Offset = "0x29316F0", VA = "0x1829328F0")]
public DirectoryInfo(string path)
{
}
// Token: 0x06001918 RID: 6424 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001918")]
[Address(RVA = "0x2932930", Offset = "0x2931730", VA = "0x182932930")]
internal DirectoryInfo(string path, bool simpleOriginalPath)
{
}
// Token: 0x06001919 RID: 6425 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001919")]
[Address(RVA = "0x2932900", Offset = "0x2931700", VA = "0x182932900")]
private DirectoryInfo(SerializationInfo info, StreamingContext context)
{
}
// Token: 0x0600191A RID: 6426 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600191A")]
[Address(RVA = "0x29324B0", Offset = "0x29312B0", VA = "0x1829324B0")]
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: 0x17000300 RID: 768
// (get) Token: 0x0600191B RID: 6427 RVA: 0x00010998 File Offset: 0x0000EB98
[Token(Token = "0x17000300")]
public override bool Exists
{
[Token(Token = "0x600191B")]
[Address(RVA = "0x2932BD0", Offset = "0x29319D0", VA = "0x182932BD0", 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: 0x17000301 RID: 769
// (get) Token: 0x0600191C RID: 6428 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x17000301")]
public override string Name
{
[Token(Token = "0x600191C")]
[Address(RVA = "0x423DE0", Offset = "0x422BE0", VA = "0x180423DE0", 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: 0x17000302 RID: 770
// (get) Token: 0x0600191D RID: 6429 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x17000302")]
public DirectoryInfo Parent
{
[Token(Token = "0x600191D")]
[Address(RVA = "0x2932C10", Offset = "0x2931A10", VA = "0x182932C10")]
get
{
return null;
}
}
/// <summary>Creates a directory.</summary>
/// <exception cref="T:System.IO.IOException">The directory cannot be created.</exception>
// Token: 0x0600191E RID: 6430 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600191E")]
[Address(RVA = "0x29314F0", Offset = "0x29302F0", VA = "0x1829314F0")]
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: 0x0600191F RID: 6431 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600191F")]
[Address(RVA = "0x2931F70", Offset = "0x2930D70", VA = "0x182931F70")]
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: 0x06001920 RID: 6432 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001920")]
[Address(RVA = "0x2932320", Offset = "0x2931120", VA = "0x182932320")]
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: 0x06001921 RID: 6433 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001921")]
[Address(RVA = "0x2931600", Offset = "0x2930400", VA = "0x182931600")]
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: 0x06001922 RID: 6434 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001922")]
[Address(RVA = "0x29317B0", Offset = "0x29305B0", VA = "0x1829317B0")]
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: 0x06001923 RID: 6435 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001923")]
[Address(RVA = "0x2931BB0", Offset = "0x29309B0", VA = "0x182931BB0")]
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: 0x06001924 RID: 6436 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001924")]
[Address(RVA = "0x2931AA0", Offset = "0x29308A0", VA = "0x182931AA0")]
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: 0x06001925 RID: 6437 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001925")]
[Address(RVA = "0x2931940", Offset = "0x2930740", VA = "0x182931940")]
public FileSystemInfo[] GetFileSystemInfos(string searchPattern, SearchOption searchOption)
{
return null;
}
// Token: 0x06001926 RID: 6438 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001926")]
[Address(RVA = "0x2932740", Offset = "0x2931540", VA = "0x182932740")]
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: 0x06001927 RID: 6439 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001927")]
[Address(RVA = "0x2931590", Offset = "0x2930390", VA = "0x182931590", 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: 0x06001928 RID: 6440 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001928")]
[Address(RVA = "0x2931500", Offset = "0x2930300", VA = "0x182931500")]
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: 0x06001929 RID: 6441 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001929")]
[Address(RVA = "0x415290", Offset = "0x414090", VA = "0x180415290", Slot = "3")]
public override string ToString()
{
return null;
}
// Token: 0x0600192A RID: 6442 RVA: 0x000109B0 File Offset: 0x0000EBB0
[Token(Token = "0x600192A")]
[Address(RVA = "0x2931CE0", Offset = "0x2930AE0", VA = "0x182931CE0")]
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: 0x0600192B RID: 6443 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600192B")]
[Address(RVA = "0x2931FB0", Offset = "0x2930DB0", VA = "0x182931FB0")]
public FileInfo[] GetFiles(string searchPattern, SearchOption searchOption)
{
return null;
}
// Token: 0x0600192C RID: 6444 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600192C")]
[Address(RVA = "0x2931380", Offset = "0x2930180", VA = "0x182931380")]
internal void CheckPath(string path)
{
}
// Token: 0x04000D4C RID: 3404
[global::Cpp2IlInjected.FieldOffset(Offset = "0x60")]
[Token(Token = "0x4000D4C")]
private string current;
// Token: 0x04000D4D RID: 3405
[global::Cpp2IlInjected.FieldOffset(Offset = "0x68")]
[Token(Token = "0x4000D4D")]
private string parent;
}
}