236 lines
11 KiB
C#
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: 0x02000286 RID: 646
|
|
[Token(Token = "0x2000286")]
|
|
[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: 0x06001771 RID: 6001 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001771")]
|
|
[Address(RVA = "0x2934C80", Offset = "0x2933A80", VA = "0x182934C80")]
|
|
public FileInfo(string fileName)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06001772 RID: 6002 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001772")]
|
|
[Address(RVA = "0x2934B00", Offset = "0x2933900", VA = "0x182934B00")]
|
|
private void Init(string fileName, bool checkHost)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06001773 RID: 6003 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x6001773")]
|
|
[Address(RVA = "0x4996E0", Offset = "0x4984E0", VA = "0x1804996E0")]
|
|
private string GetDisplayPath(string originalPath)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x06001774 RID: 6004 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001774")]
|
|
[Address(RVA = "0x2934DE0", Offset = "0x2933BE0", VA = "0x182934DE0")]
|
|
private FileInfo(SerializationInfo info, StreamingContext context)
|
|
{
|
|
}
|
|
|
|
/// <summary>Gets the name of the file.</summary>
|
|
/// <returns>The name of the file.</returns>
|
|
// Token: 0x170002BA RID: 698
|
|
// (get) Token: 0x06001775 RID: 6005 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x170002BA")]
|
|
public override string Name
|
|
{
|
|
[Token(Token = "0x6001775")]
|
|
[Address(RVA = "0x423DE0", Offset = "0x422BE0", VA = "0x180423DE0", 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: 0x170002BB RID: 699
|
|
// (get) Token: 0x06001776 RID: 6006 RVA: 0x00010200 File Offset: 0x0000E400
|
|
[Token(Token = "0x170002BB")]
|
|
public long Length
|
|
{
|
|
[Token(Token = "0x6001776")]
|
|
[Address(RVA = "0x2935050", Offset = "0x2933E50", VA = "0x182935050")]
|
|
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: 0x170002BC RID: 700
|
|
// (get) Token: 0x06001777 RID: 6007 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x170002BC")]
|
|
public string DirectoryName
|
|
{
|
|
[Token(Token = "0x6001777")]
|
|
[Address(RVA = "0x2934E80", Offset = "0x2933C80", VA = "0x182934E80")]
|
|
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: 0x170002BD RID: 701
|
|
// (get) Token: 0x06001778 RID: 6008 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x170002BD")]
|
|
public DirectoryInfo Directory
|
|
{
|
|
[Token(Token = "0x6001778")]
|
|
[Address(RVA = "0x2934EE0", Offset = "0x2933CE0", VA = "0x182934EE0")]
|
|
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: 0x170002BE RID: 702
|
|
// (get) Token: 0x06001779 RID: 6009 RVA: 0x00010218 File Offset: 0x0000E418
|
|
// (set) Token: 0x0600177A RID: 6010 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x170002BE")]
|
|
public bool IsReadOnly
|
|
{
|
|
[Token(Token = "0x6001779")]
|
|
[Address(RVA = "0x2935010", Offset = "0x2933E10", VA = "0x182935010")]
|
|
get
|
|
{
|
|
return default(bool);
|
|
}
|
|
[Token(Token = "0x600177A")]
|
|
[Address(RVA = "0x29350A0", Offset = "0x2933EA0", VA = "0x1829350A0")]
|
|
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: 0x0600177B RID: 6011 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x600177B")]
|
|
[Address(RVA = "0x2934BD0", Offset = "0x29339D0", VA = "0x182934BD0")]
|
|
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: 0x0600177C RID: 6012 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x600177C")]
|
|
[Address(RVA = "0x2934920", Offset = "0x2933720", VA = "0x182934920")]
|
|
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: 0x0600177D RID: 6013 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x600177D")]
|
|
[Address(RVA = "0x29348C0", Offset = "0x29336C0", VA = "0x1829348C0")]
|
|
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: 0x0600177E RID: 6014 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x600177E")]
|
|
[Address(RVA = "0x2934980", Offset = "0x2933780", VA = "0x182934980", 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: 0x170002BF RID: 703
|
|
// (get) Token: 0x0600177F RID: 6015 RVA: 0x00010230 File Offset: 0x0000E430
|
|
[Token(Token = "0x170002BF")]
|
|
public override bool Exists
|
|
{
|
|
[Token(Token = "0x600177F")]
|
|
[Address(RVA = "0x2934F90", Offset = "0x2933D90", VA = "0x182934F90", Slot = "9")]
|
|
get
|
|
{
|
|
return default(bool);
|
|
}
|
|
}
|
|
|
|
/// <summary>Returns the path as a string.</summary>
|
|
/// <returns>A string representing the path.</returns>
|
|
// Token: 0x06001780 RID: 6016 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x6001780")]
|
|
[Address(RVA = "0x423D40", Offset = "0x422B40", VA = "0x180423D40", Slot = "3")]
|
|
public override string ToString()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x04000CB9 RID: 3257
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x60")]
|
|
[Token(Token = "0x4000CB9")]
|
|
private string _name;
|
|
}
|
|
}
|