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

236 lines
11 KiB
C#

using System;
using System.Runtime.InteropServices;
using System.Runtime.Serialization;
using Cpp2IlInjected;
namespace System.IO
{
/// <summary>Provides properties and instance methods for the creation, copying, deletion, moving, and opening of files, and aids in the creation of <see cref="T:System.IO.FileStream" /> objects. This class cannot be inherited.</summary>
// Token: 0x0200028D RID: 653
[Token(Token = "0x200028D")]
[ComVisible(true)]
[Serializable]
public sealed class FileInfo : FileSystemInfo
{
/// <summary>Initializes a new instance of the <see cref="T:System.IO.FileInfo" /> class, which acts as a wrapper for a file path.</summary>
/// <param name="fileName">The fully qualified name of the new file, or the relative file name. Do not end the path with the directory separator character.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="fileName" /> 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">The file name is empty, contains only white spaces, or contains invalid characters.</exception>
/// <exception cref="T:System.UnauthorizedAccessException">Access to <paramref name="fileName" /> is denied.</exception>
/// <exception cref="T:System.IO.PathTooLongException">The specified path, file name, or both exceed the system-defined maximum length.</exception>
/// <exception cref="T:System.NotSupportedException">
/// <paramref name="fileName" /> contains a colon (:) in the middle of the string.</exception>
// Token: 0x060017B0 RID: 6064 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60017B0")]
[Address(RVA = "0x2BAC3D0", Offset = "0x2BAB3D0", VA = "0x182BAC3D0")]
public FileInfo(string fileName)
{
}
// Token: 0x060017B1 RID: 6065 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60017B1")]
[Address(RVA = "0x2BAC280", Offset = "0x2BAB280", VA = "0x182BAC280")]
private void Init(string fileName, bool checkHost)
{
}
// Token: 0x060017B2 RID: 6066 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60017B2")]
[Address(RVA = "0x4AA5C0", Offset = "0x4A95C0", VA = "0x1804AA5C0")]
private string GetDisplayPath(string originalPath)
{
return null;
}
// Token: 0x060017B3 RID: 6067 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60017B3")]
[Address(RVA = "0x2BAC4B0", Offset = "0x2BAB4B0", VA = "0x182BAC4B0")]
private FileInfo(SerializationInfo info, StreamingContext context)
{
}
/// <summary>Gets the name of the file.</summary>
/// <returns>The name of the file.</returns>
// Token: 0x170002C5 RID: 709
// (get) Token: 0x060017B4 RID: 6068 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x170002C5")]
public override string Name
{
[Token(Token = "0x60017B4")]
[Address(RVA = "0x417720", Offset = "0x416720", VA = "0x180417720", Slot = "8")]
get
{
return null;
}
}
/// <summary>Gets the size, in bytes, of the current file.</summary>
/// <returns>The size of the current file in bytes.</returns>
/// <exception cref="T:System.IO.IOException">
/// <see cref="M:System.IO.FileSystemInfo.Refresh" /> cannot update the state of the file or directory.</exception>
/// <exception cref="T:System.IO.FileNotFoundException">The file does not exist.
/// -or-
/// The <see langword="Length" /> property is called for a directory.</exception>
// Token: 0x170002C6 RID: 710
// (get) Token: 0x060017B5 RID: 6069 RVA: 0x00010560 File Offset: 0x0000E760
[Token(Token = "0x170002C6")]
public long Length
{
[Token(Token = "0x60017B5")]
[Address(RVA = "0x2BAC700", Offset = "0x2BAB700", VA = "0x182BAC700")]
get
{
return 0L;
}
}
/// <summary>Gets a string representing the directory's full path.</summary>
/// <returns>A string representing the directory's full path.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <see langword="null" /> was passed in for the directory name.</exception>
/// <exception cref="T:System.IO.PathTooLongException">The fully qualified path name exceeds the system-defined maximum length.</exception>
/// <exception cref="T:System.Security.SecurityException">The caller does not have the required permission.</exception>
// Token: 0x170002C7 RID: 711
// (get) Token: 0x060017B6 RID: 6070 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x170002C7")]
public string DirectoryName
{
[Token(Token = "0x60017B6")]
[Address(RVA = "0x2BAC550", Offset = "0x2BAB550", VA = "0x182BAC550")]
get
{
return null;
}
}
/// <summary>Gets an instance of the parent directory.</summary>
/// <returns>A <see cref="T:System.IO.DirectoryInfo" /> object representing the parent directory of this file.</returns>
/// <exception cref="T:System.IO.DirectoryNotFoundException">The specified path 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>
// Token: 0x170002C8 RID: 712
// (get) Token: 0x060017B7 RID: 6071 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x170002C8")]
public DirectoryInfo Directory
{
[Token(Token = "0x60017B7")]
[Address(RVA = "0x2BAC5B0", Offset = "0x2BAB5B0", VA = "0x182BAC5B0")]
get
{
return null;
}
}
/// <summary>Gets or sets a value that determines if the current file is read only.</summary>
/// <returns>
/// <see langword="true" /> if the current file is read only; otherwise, <see langword="false" />.</returns>
/// <exception cref="T:System.IO.FileNotFoundException">The file described by the current <see cref="T:System.IO.FileInfo" /> object could not be found.</exception>
/// <exception cref="T:System.IO.IOException">An I/O error occurred while opening the file.</exception>
/// <exception cref="T:System.UnauthorizedAccessException">This operation is not supported on the current platform.
/// -or-
/// The caller does not have the required permission.</exception>
/// <exception cref="T:System.ArgumentException">The user does not have write permission, but attempted to set this property to <see langword="false" />.</exception>
// Token: 0x170002C9 RID: 713
// (get) Token: 0x060017B8 RID: 6072 RVA: 0x00010578 File Offset: 0x0000E778
// (set) Token: 0x060017B9 RID: 6073 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170002C9")]
public bool IsReadOnly
{
[Token(Token = "0x60017B8")]
[Address(RVA = "0x2BAC6E0", Offset = "0x2BAB6E0", VA = "0x182BAC6E0")]
get
{
return default(bool);
}
[Token(Token = "0x60017B9")]
[Address(RVA = "0x2BAC750", Offset = "0x2BAB750", VA = "0x182BAC750")]
set
{
}
}
/// <summary>Creates a <see cref="T:System.IO.StreamReader" /> with UTF8 encoding that reads from an existing text file.</summary>
/// <returns>A new <see langword="StreamReader" /> with UTF8 encoding.</returns>
/// <exception cref="T:System.Security.SecurityException">The caller does not have the required permission.</exception>
/// <exception cref="T:System.IO.FileNotFoundException">The file is not found.</exception>
/// <exception cref="T:System.UnauthorizedAccessException">
/// <paramref name="path" /> is read-only or is a directory.</exception>
/// <exception cref="T:System.IO.DirectoryNotFoundException">The specified path is invalid, such as being on an unmapped drive.</exception>
// Token: 0x060017BA RID: 6074 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60017BA")]
[Address(RVA = "0x2BAC310", Offset = "0x2BAB310", VA = "0x182BAC310")]
public StreamReader OpenText()
{
return null;
}
/// <summary>Creates a <see cref="T:System.IO.StreamWriter" /> that writes a new text file.</summary>
/// <returns>A new <see langword="StreamWriter" />.</returns>
/// <exception cref="T:System.UnauthorizedAccessException">The file name is a directory.</exception>
/// <exception cref="T:System.IO.IOException">The disk is read-only.</exception>
/// <exception cref="T:System.Security.SecurityException">The caller does not have the required permission.</exception>
// Token: 0x060017BB RID: 6075 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60017BB")]
[Address(RVA = "0x2BAC150", Offset = "0x2BAB150", VA = "0x182BAC150")]
public StreamWriter CreateText()
{
return null;
}
/// <summary>Creates a <see cref="T:System.IO.StreamWriter" /> that appends text to the file represented by this instance of the <see cref="T:System.IO.FileInfo" />.</summary>
/// <returns>A new <see langword="StreamWriter" />.</returns>
// Token: 0x060017BC RID: 6076 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60017BC")]
[Address(RVA = "0x2BAC0F0", Offset = "0x2BAB0F0", VA = "0x182BAC0F0")]
public StreamWriter AppendText()
{
return null;
}
/// <summary>Permanently deletes a file.</summary>
/// <exception cref="T:System.IO.IOException">The target file is open or memory-mapped on a computer running Microsoft Windows NT.
/// -or-
/// There is an open handle on the file, 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>
/// <exception cref="T:System.UnauthorizedAccessException">The path is a directory.</exception>
// Token: 0x060017BD RID: 6077 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60017BD")]
[Address(RVA = "0x2BAC1B0", Offset = "0x2BAB1B0", VA = "0x182BAC1B0", Slot = "10")]
public override void Delete()
{
}
/// <summary>Gets a value indicating whether a file exists.</summary>
/// <returns>
/// <see langword="true" /> if the file exists; <see langword="false" /> if the file does not exist or if the file is a directory.</returns>
// Token: 0x170002CA RID: 714
// (get) Token: 0x060017BE RID: 6078 RVA: 0x00010590 File Offset: 0x0000E790
[Token(Token = "0x170002CA")]
public override bool Exists
{
[Token(Token = "0x60017BE")]
[Address(RVA = "0x2BAC660", Offset = "0x2BAB660", VA = "0x182BAC660", Slot = "9")]
get
{
return default(bool);
}
}
/// <summary>Returns the path as a string.</summary>
/// <returns>A string representing the path.</returns>
// Token: 0x060017BF RID: 6079 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60017BF")]
[Address(RVA = "0x417710", Offset = "0x416710", VA = "0x180417710", Slot = "3")]
public override string ToString()
{
return null;
}
// Token: 0x04000CC3 RID: 3267
[global::Cpp2IlInjected.FieldOffset(Offset = "0x60")]
[Token(Token = "0x4000CC3")]
private string _name;
}
}