Files
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

266 lines
12 KiB
C#

using System;
using System.Runtime.InteropServices;
using System.Runtime.Serialization;
using Cpp2IlInjected;
namespace System.IO
{
/// <summary>Provides the base class for both <see cref="T:System.IO.FileInfo" /> and <see cref="T:System.IO.DirectoryInfo" /> objects.</summary>
// Token: 0x02000297 RID: 663
[Token(Token = "0x2000297")]
[ComVisible(true)]
[Serializable]
public abstract class FileSystemInfo : MarshalByRefObject, ISerializable
{
/// <summary>Initializes a new instance of the <see cref="T:System.IO.FileSystemInfo" /> class.</summary>
// Token: 0x060017F5 RID: 6133 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60017F5")]
[Address(RVA = "0xCBDE80", Offset = "0xCBCE80", VA = "0x180CBDE80")]
protected FileSystemInfo()
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.IO.FileSystemInfo" /> class with serialized data.</summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The specified <see cref="T:System.Runtime.Serialization.SerializationInfo" /> is null.</exception>
// Token: 0x060017F6 RID: 6134 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60017F6")]
[Address(RVA = "0xCBDED0", Offset = "0xCBCED0", VA = "0x180CBDED0")]
protected FileSystemInfo(SerializationInfo info, StreamingContext context)
{
}
/// <summary>Gets the full path of the directory or file.</summary>
/// <returns>A string containing the full path.</returns>
/// <exception cref="T:System.IO.PathTooLongException">The fully qualified path and file name exceed the system-defined maximum length.</exception>
/// <exception cref="T:System.Security.SecurityException">The caller does not have the required permission.</exception>
// Token: 0x170002D3 RID: 723
// (get) Token: 0x060017F7 RID: 6135 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x170002D3")]
public virtual string FullName
{
[Token(Token = "0x60017F7")]
[Address(RVA = "0x4975A0", Offset = "0x4965A0", VA = "0x1804975A0", Slot = "7")]
get
{
return null;
}
}
/// <summary>Gets the string representing the extension part of the file.</summary>
/// <returns>A string containing the <see cref="T:System.IO.FileSystemInfo" /> extension.</returns>
// Token: 0x170002D4 RID: 724
// (get) Token: 0x060017F8 RID: 6136 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x170002D4")]
public string Extension
{
[Token(Token = "0x60017F8")]
[Address(RVA = "0xCBE1F0", Offset = "0xCBD1F0", VA = "0x180CBE1F0")]
get
{
return null;
}
}
/// <summary>For files, gets the name of the file. For directories, gets the name of the last directory in the hierarchy if a hierarchy exists. Otherwise, the <see langword="Name" /> property gets the name of the directory.</summary>
/// <returns>A string that is the name of the parent directory, the name of the last directory in the hierarchy, or the name of a file, including the file name extension.</returns>
// Token: 0x170002D5 RID: 725
// (get) Token: 0x060017F9 RID: 6137
[Token(Token = "0x170002D5")]
public abstract string Name
{
[Token(Token = "0x60017F9")]
[Address(Slot = "8")]
get;
}
/// <summary>Gets a value indicating whether the file or directory exists.</summary>
/// <returns>
/// <see langword="true" /> if the file or directory exists; otherwise, <see langword="false" />.</returns>
// Token: 0x170002D6 RID: 726
// (get) Token: 0x060017FA RID: 6138
[Token(Token = "0x170002D6")]
public abstract bool Exists
{
[Token(Token = "0x60017FA")]
[Address(Slot = "9")]
get;
}
/// <summary>Deletes a file or directory.</summary>
/// <exception cref="T:System.IO.DirectoryNotFoundException">The specified path is invalid; for example, it is on an unmapped drive.</exception>
/// <exception cref="T:System.IO.IOException">There is an open handle on the file or directory, 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>
// Token: 0x060017FB RID: 6139
[Token(Token = "0x60017FB")]
[Address(Slot = "10")]
public abstract void Delete();
/// <summary>Gets or sets the creation time of the current file or directory.</summary>
/// <returns>The creation date and time of the current <see cref="T:System.IO.FileSystemInfo" /> object.</returns>
/// <exception cref="T:System.IO.IOException">
/// <see cref="M:System.IO.FileSystemInfo.Refresh" /> cannot initialize the data.</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.PlatformNotSupportedException">The current operating system is not Windows NT or later.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">The caller attempts to set an invalid creation time.</exception>
// Token: 0x170002D7 RID: 727
// (get) Token: 0x060017FC RID: 6140 RVA: 0x00010608 File Offset: 0x0000E808
[Token(Token = "0x170002D7")]
public DateTime CreationTime
{
[Token(Token = "0x60017FC")]
[Address(RVA = "0xCBE130", Offset = "0xCBD130", VA = "0x180CBE130")]
get
{
return default(DateTime);
}
}
/// <summary>Gets or sets the creation time, in coordinated universal time (UTC), of the current file or directory.</summary>
/// <returns>The creation date and time in UTC format of the current <see cref="T:System.IO.FileSystemInfo" /> object.</returns>
/// <exception cref="T:System.IO.IOException">
/// <see cref="M:System.IO.FileSystemInfo.Refresh" /> cannot initialize the data.</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.PlatformNotSupportedException">The current operating system is not Windows NT or later.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">The caller attempts to set an invalid access time.</exception>
// Token: 0x170002D8 RID: 728
// (get) Token: 0x060017FD RID: 6141 RVA: 0x00010620 File Offset: 0x0000E820
[Token(Token = "0x170002D8")]
[ComVisible(false)]
public DateTime CreationTimeUtc
{
[Token(Token = "0x60017FD")]
[Address(RVA = "0xCBE080", Offset = "0xCBD080", VA = "0x180CBE080")]
get
{
return default(DateTime);
}
}
/// <summary>Gets or sets the time, in coordinated universal time (UTC), when the current file or directory was last written to.</summary>
/// <returns>The UTC time when the current file was last written to.</returns>
/// <exception cref="T:System.IO.IOException">
/// <see cref="M:System.IO.FileSystemInfo.Refresh" /> cannot initialize the data.</exception>
/// <exception cref="T:System.PlatformNotSupportedException">The current operating system is not Windows NT or later.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">The caller attempts to set an invalid write time.</exception>
// Token: 0x170002D9 RID: 729
// (get) Token: 0x060017FE RID: 6142 RVA: 0x00010638 File Offset: 0x0000E838
[Token(Token = "0x170002D9")]
[ComVisible(false)]
public DateTime LastWriteTimeUtc
{
[Token(Token = "0x60017FE")]
[Address(RVA = "0xCBE340", Offset = "0xCBD340", VA = "0x180CBE340")]
get
{
return default(DateTime);
}
}
/// <summary>Refreshes the state of the object.</summary>
/// <exception cref="T:System.IO.IOException">A device such as a disk drive is not ready.</exception>
// Token: 0x060017FF RID: 6143 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60017FF")]
[Address(RVA = "0xCBDE50", Offset = "0xCBCE50", VA = "0x180CBDE50")]
public void Refresh()
{
}
/// <summary>Gets or sets the attributes for the current file or directory.</summary>
/// <returns>
/// <see cref="T:System.IO.FileAttributes" /> of the current <see cref="T:System.IO.FileSystemInfo" />.</returns>
/// <exception cref="T:System.IO.FileNotFoundException">The specified file doesn't exist. Only thrown when setting the property value.</exception>
/// <exception cref="T:System.IO.DirectoryNotFoundException">The specified path is invalid. For example, it's on an unmapped drive. Only thrown when setting the property value.</exception>
/// <exception cref="T:System.Security.SecurityException">The caller doesn't have the required permission.</exception>
/// <exception cref="T:System.ArgumentException">The caller attempts to set an invalid file attribute.
/// -or-
/// The user attempts to set an attribute value but doesn't have write permission.</exception>
/// <exception cref="T:System.IO.IOException">
/// <see cref="M:System.IO.FileSystemInfo.Refresh" /> cannot initialize the data.</exception>
// Token: 0x170002DA RID: 730
// (get) Token: 0x06001800 RID: 6144 RVA: 0x00010650 File Offset: 0x0000E850
// (set) Token: 0x06001801 RID: 6145 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170002DA")]
public FileAttributes Attributes
{
[Token(Token = "0x6001800")]
[Address(RVA = "0xCBE010", Offset = "0xCBD010", VA = "0x180CBE010")]
get
{
return (FileAttributes)0;
}
[Token(Token = "0x6001801")]
[Address(RVA = "0xCBE3F0", Offset = "0xCBD3F0", VA = "0x180CBE3F0")]
set
{
}
}
/// <summary>Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> object with the file name and additional exception information.</summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
// Token: 0x06001802 RID: 6146 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001802")]
[Address(RVA = "0xCBDD70", Offset = "0xCBCD70", VA = "0x180CBDD70", Slot = "11")]
[ComVisible(false)]
public virtual void GetObjectData(SerializationInfo info, StreamingContext context)
{
}
// Token: 0x170002DB RID: 731
// (get) Token: 0x06001803 RID: 6147 RVA: 0x00002082 File Offset: 0x00000282
// (set) Token: 0x06001804 RID: 6148 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170002DB")]
internal string DisplayPath
{
[Token(Token = "0x6001803")]
[Address(RVA = "0x417710", Offset = "0x416710", VA = "0x180417710")]
get
{
return null;
}
[Token(Token = "0x6001804")]
[Address(RVA = "0x417A10", Offset = "0x416A10", VA = "0x180417A10")]
set
{
}
}
// Token: 0x04000CDC RID: 3292
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x4000CDC")]
internal MonoIOStat _data;
// Token: 0x04000CDD RID: 3293
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
[Token(Token = "0x4000CDD")]
internal int _dataInitialised;
// Token: 0x04000CDE RID: 3294
[Token(Token = "0x4000CDE")]
private const int ERROR_INVALID_PARAMETER = 87;
// Token: 0x04000CDF RID: 3295
[Token(Token = "0x4000CDF")]
internal const int ERROR_ACCESS_DENIED = 5;
/// <summary>Represents the fully qualified path of the directory or file.</summary>
/// <exception cref="T:System.IO.PathTooLongException">The fully qualified path exceeds the system-defined maximum length.</exception>
// Token: 0x04000CE0 RID: 3296
[global::Cpp2IlInjected.FieldOffset(Offset = "0x48")]
[Token(Token = "0x4000CE0")]
protected string FullPath;
/// <summary>The path originally specified by the user, whether relative or absolute.</summary>
// Token: 0x04000CE1 RID: 3297
[global::Cpp2IlInjected.FieldOffset(Offset = "0x50")]
[Token(Token = "0x4000CE1")]
protected string OriginalPath;
// Token: 0x04000CE2 RID: 3298
[global::Cpp2IlInjected.FieldOffset(Offset = "0x58")]
[Token(Token = "0x4000CE2")]
private string _displayPath;
}
}