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

429 lines
21 KiB
C#

using System;
using System.Runtime.InteropServices;
using System.Text;
using Cpp2IlInjected;
namespace System.IO
{
/// <summary>Performs operations on <see cref="T:System.String" /> instances that contain file or directory path information. These operations are performed in a cross-platform manner.</summary>
// Token: 0x020002C3 RID: 707
[Token(Token = "0x20002C3")]
[ComVisible(true)]
public static class Path
{
/// <summary>Changes the extension of a path string.</summary>
/// <param name="path">The path information to modify. The path cannot contain any of the characters defined in <see cref="M:System.IO.Path.GetInvalidPathChars" />.</param>
/// <param name="extension">The new extension (with or without a leading period). Specify <see langword="null" /> to remove an existing extension from <paramref name="path" />.</param>
/// <returns>The modified path information.
/// On Windows-based desktop platforms, if <paramref name="path" /> is <see langword="null" /> or an empty string (""), the path information is returned unmodified. If <paramref name="extension" /> is <see langword="null" />, the returned string contains the specified path with its extension removed. If <paramref name="path" /> has no extension, and <paramref name="extension" /> is not <see langword="null" />, the returned path string contains <paramref name="extension" /> appended to the end of <paramref name="path" />.</returns>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="path" /> contains one or more of the invalid characters defined in <see cref="M:System.IO.Path.GetInvalidPathChars" />.</exception>
// Token: 0x06001A19 RID: 6681 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001A19")]
[Address(RVA = "0xCC50D0", Offset = "0xCC40D0", VA = "0x180CC50D0")]
public static string ChangeExtension(string path, string extension)
{
return null;
}
/// <summary>Combines two strings into a path.</summary>
/// <param name="path1">The first path to combine.</param>
/// <param name="path2">The second path to combine.</param>
/// <returns>The combined paths. If one of the specified paths is a zero-length string, this method returns the other path. If <paramref name="path2" /> contains an absolute path, this method returns <paramref name="path2" />.</returns>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="path1" /> or <paramref name="path2" /> contains one or more of the invalid characters defined in <see cref="M:System.IO.Path.GetInvalidPathChars" />.</exception>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="path1" /> or <paramref name="path2" /> is <see langword="null" />.</exception>
// Token: 0x06001A1A RID: 6682 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001A1A")]
[Address(RVA = "0xCC5A90", Offset = "0xCC4A90", VA = "0x180CC5A90")]
public static string Combine(string path1, string path2)
{
return null;
}
// Token: 0x06001A1B RID: 6683 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001A1B")]
[Address(RVA = "0xCC55A0", Offset = "0xCC45A0", VA = "0x180CC55A0")]
internal static string CleanPath(string s)
{
return null;
}
/// <summary>Returns the directory information for the specified path string.</summary>
/// <param name="path">The path of a file or directory.</param>
/// <returns>Directory information for <paramref name="path" />, or <see langword="null" /> if <paramref name="path" /> denotes a root directory or is null. Returns <see cref="F:System.String.Empty" /> if <paramref name="path" /> does not contain directory information.</returns>
/// <exception cref="T:System.ArgumentException">The <paramref name="path" /> parameter contains invalid characters, is empty, or contains only white spaces.</exception>
/// <exception cref="T:System.IO.PathTooLongException">In the .NET for Windows Store apps or the Portable Class Library, catch the base class exception, <see cref="T:System.IO.IOException" />, instead.
///
///
///
///
/// The <paramref name="path" /> parameter is longer than the system-defined maximum length.</exception>
// Token: 0x06001A1C RID: 6684 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001A1C")]
[Address(RVA = "0xCC6300", Offset = "0xCC5300", VA = "0x180CC6300")]
public static string GetDirectoryName(string path)
{
return null;
}
/// <summary>Returns the extension of the specified path string.</summary>
/// <param name="path">The path string from which to get the extension.</param>
/// <returns>The extension of the specified path (including the period "."), or <see langword="null" />, or <see cref="F:System.String.Empty" />. If <paramref name="path" /> is <see langword="null" />, <see cref="M:System.IO.Path.GetExtension(System.String)" /> returns <see langword="null" />. If <paramref name="path" /> does not have extension information, <see cref="M:System.IO.Path.GetExtension(System.String)" /> returns <see cref="F:System.String.Empty" />.</returns>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="path" /> contains one or more of the invalid characters defined in <see cref="M:System.IO.Path.GetInvalidPathChars" />.</exception>
// Token: 0x06001A1D RID: 6685 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001A1D")]
[Address(RVA = "0xCC6720", Offset = "0xCC5720", VA = "0x180CC6720")]
public static string GetExtension(string path)
{
return null;
}
/// <summary>Returns the file name and extension of the specified path string.</summary>
/// <param name="path">The path string from which to obtain the file name and extension.</param>
/// <returns>The characters after the last directory character in <paramref name="path" />. If the last character of <paramref name="path" /> is a directory or volume separator character, this method returns <see cref="F:System.String.Empty" />. If <paramref name="path" /> is <see langword="null" />, this method returns <see langword="null" />.</returns>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="path" /> contains one or more of the invalid characters defined in <see cref="M:System.IO.Path.GetInvalidPathChars" />.</exception>
// Token: 0x06001A1E RID: 6686 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001A1E")]
[Address(RVA = "0xCC6890", Offset = "0xCC5890", VA = "0x180CC6890")]
public static string GetFileName(string path)
{
return null;
}
/// <summary>Returns the file name of the specified path string without the extension.</summary>
/// <param name="path">The path of the file.</param>
/// <returns>The string returned by <see cref="M:System.IO.Path.GetFileName(System.String)" />, minus the last period (.) and all characters following it.</returns>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="path" /> contains one or more of the invalid characters defined in <see cref="M:System.IO.Path.GetInvalidPathChars" />.</exception>
// Token: 0x06001A1F RID: 6687 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001A1F")]
[Address(RVA = "0xCC6830", Offset = "0xCC5830", VA = "0x180CC6830")]
public static string GetFileNameWithoutExtension(string path)
{
return null;
}
/// <summary>Returns the absolute path for the specified path string.</summary>
/// <param name="path">The file or directory for which to obtain absolute path information.</param>
/// <returns>The fully qualified location of <paramref name="path" />, such as "C:\MyFile.txt".</returns>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="path" /> is a zero-length string, contains only white space, or contains one or more of the invalid characters defined in <see cref="M:System.IO.Path.GetInvalidPathChars" />.
/// -or-
/// The system could not retrieve the absolute path.</exception>
/// <exception cref="T:System.Security.SecurityException">The caller does not have the required permissions.</exception>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="path" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.NotSupportedException">
/// <paramref name="path" /> contains a colon (":") that is not part of a volume identifier (for example, "c:\").</exception>
/// <exception cref="T:System.IO.PathTooLongException">The specified path, file name, or both exceed the system-defined maximum length.</exception>
// Token: 0x06001A20 RID: 6688 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001A20")]
[Address(RVA = "0xCC6C90", Offset = "0xCC5C90", VA = "0x180CC6C90")]
public static string GetFullPath(string path)
{
return null;
}
// Token: 0x06001A21 RID: 6689 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001A21")]
[Address(RVA = "0xCC69A0", Offset = "0xCC59A0", VA = "0x180CC69A0")]
internal static string GetFullPathInternal(string path)
{
return null;
}
// Token: 0x06001A22 RID: 6690
[Token(Token = "0x6001A22")]
[Address(RVA = "0xCC6A00", Offset = "0xCC5A00", VA = "0x180CC6A00")]
private static extern int GetFullPathName(string path, int numBufferChars, StringBuilder buffer, ref IntPtr lpFilePartOrNull);
// Token: 0x06001A23 RID: 6691 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001A23")]
[Address(RVA = "0xCC6AE0", Offset = "0xCC5AE0", VA = "0x180CC6AE0")]
internal static string GetFullPathName(string path)
{
return null;
}
// Token: 0x06001A24 RID: 6692 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001A24")]
[Address(RVA = "0xCC8AA0", Offset = "0xCC7AA0", VA = "0x180CC8AA0")]
internal static string WindowsDriveAdjustment(string path)
{
return null;
}
// Token: 0x06001A25 RID: 6693 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001A25")]
[Address(RVA = "0xCC77A0", Offset = "0xCC67A0", VA = "0x180CC77A0")]
internal static string InsecureGetFullPath(string path)
{
return null;
}
// Token: 0x06001A26 RID: 6694 RVA: 0x00011490 File Offset: 0x0000F690
[Token(Token = "0x6001A26")]
[Address(RVA = "0xCC81D0", Offset = "0xCC71D0", VA = "0x180CC81D0")]
internal static bool IsDirectorySeparator(char c)
{
return default(bool);
}
/// <summary>Gets the root directory information of the specified path.</summary>
/// <param name="path">The path from which to obtain root directory information.</param>
/// <returns>The root directory of <paramref name="path" />, or <see langword="null" /> if <paramref name="path" /> is <see langword="null" />, or an empty string if <paramref name="path" /> does not contain root directory information.</returns>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="path" /> contains one or more of the invalid characters defined in <see cref="M:System.IO.Path.GetInvalidPathChars" />.
/// -or-
/// <see cref="F:System.String.Empty" /> was passed to <paramref name="path" />.</exception>
// Token: 0x06001A27 RID: 6695 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001A27")]
[Address(RVA = "0xCC6E00", Offset = "0xCC5E00", VA = "0x180CC6E00")]
public static string GetPathRoot(string path)
{
return null;
}
/// <summary>Returns the path of the current user's temporary folder.</summary>
/// <returns>The path to the temporary folder, ending with a backslash.</returns>
/// <exception cref="T:System.Security.SecurityException">The caller does not have the required permissions.</exception>
// Token: 0x06001A28 RID: 6696 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001A28")]
[Address(RVA = "0xCC7570", Offset = "0xCC6570", VA = "0x180CC7570")]
public static string GetTempPath()
{
return null;
}
// Token: 0x06001A29 RID: 6697 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001A29")]
[Address(RVA = "0xCC91C0", Offset = "0xCC81C0", VA = "0x180CC91C0")]
private static string get_temp_path()
{
return null;
}
/// <summary>Determines whether a path includes a file name extension.</summary>
/// <param name="path">The path to search for an extension.</param>
/// <returns>
/// <see langword="true" /> if the characters that follow the last directory separator (\\ or /) or volume separator (:) in the path include a period (.) followed by one or more characters; otherwise, <see langword="false" />.</returns>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="path" /> contains one or more of the invalid characters defined in <see cref="M:System.IO.Path.GetInvalidPathChars" />.</exception>
// Token: 0x06001A2A RID: 6698 RVA: 0x000114A8 File Offset: 0x0000F6A8
[Token(Token = "0x6001A2A")]
[Address(RVA = "0xCC7690", Offset = "0xCC6690", VA = "0x180CC7690")]
public static bool HasExtension(string path)
{
return default(bool);
}
/// <summary>Gets a value indicating whether the specified path string contains a root.</summary>
/// <param name="path">The path to test.</param>
/// <returns>
/// <see langword="true" /> if <paramref name="path" /> contains a root; otherwise, <see langword="false" />.</returns>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="path" /> contains one or more of the invalid characters defined in <see cref="M:System.IO.Path.GetInvalidPathChars" />.</exception>
// Token: 0x06001A2B RID: 6699 RVA: 0x000114C0 File Offset: 0x0000F6C0
[Token(Token = "0x6001A2B")]
[Address(RVA = "0xCC8260", Offset = "0xCC7260", VA = "0x180CC8260")]
public static bool IsPathRooted(string path)
{
return default(bool);
}
/// <summary>Gets an array containing the characters that are not allowed in file names.</summary>
/// <returns>An array containing the characters that are not allowed in file names.</returns>
// Token: 0x06001A2C RID: 6700 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001A2C")]
[Address(RVA = "0xCC6CF0", Offset = "0xCC5CF0", VA = "0x180CC6CF0")]
public static char[] GetInvalidFileNameChars()
{
return null;
}
/// <summary>Gets an array containing the characters that are not allowed in path names.</summary>
/// <returns>An array containing the characters that are not allowed in path names.</returns>
// Token: 0x06001A2D RID: 6701 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001A2D")]
[Address(RVA = "0xCC6D90", Offset = "0xCC5D90", VA = "0x180CC6D90")]
public static char[] GetInvalidPathChars()
{
return null;
}
// Token: 0x06001A2E RID: 6702 RVA: 0x000114D8 File Offset: 0x0000F6D8
[Token(Token = "0x6001A2E")]
[Address(RVA = "0xCC8FC0", Offset = "0xCC7FC0", VA = "0x180CC8FC0")]
private static int findExtension(string path)
{
return 0;
}
// Token: 0x06001A30 RID: 6704 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001A30")]
[Address(RVA = "0xCC7330", Offset = "0xCC6330", VA = "0x180CC7330")]
private static string GetServerAndShare(string path)
{
return null;
}
// Token: 0x06001A31 RID: 6705 RVA: 0x000114F0 File Offset: 0x0000F6F0
[Token(Token = "0x6001A31")]
[Address(RVA = "0xCC8430", Offset = "0xCC7430", VA = "0x180CC8430")]
private static bool SameRoot(string root, string path)
{
return default(bool);
}
// Token: 0x06001A32 RID: 6706 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001A32")]
[Address(RVA = "0xCC48A0", Offset = "0xCC38A0", VA = "0x180CC48A0")]
private static string CanonicalizePath(string path)
{
return null;
}
/// <summary>Combines an array of strings into a path.</summary>
/// <param name="paths">An array of parts of the path.</param>
/// <returns>The combined paths.</returns>
/// <exception cref="T:System.ArgumentException">One of the strings in the array contains one or more of the invalid characters defined in <see cref="M:System.IO.Path.GetInvalidPathChars" />.</exception>
/// <exception cref="T:System.ArgumentNullException">One of the strings in the array is <see langword="null" />.</exception>
// Token: 0x06001A33 RID: 6707 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001A33")]
[Address(RVA = "0xCC5FB0", Offset = "0xCC4FB0", VA = "0x180CC5FB0")]
public static string Combine(params string[] paths)
{
return null;
}
/// <summary>Combines three strings into a path.</summary>
/// <param name="path1">The first path to combine.</param>
/// <param name="path2">The second path to combine.</param>
/// <param name="path3">The third path to combine.</param>
/// <returns>The combined paths.</returns>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="path1" />, <paramref name="path2" />, or <paramref name="path3" /> contains one or more of the invalid characters defined in <see cref="M:System.IO.Path.GetInvalidPathChars" />.</exception>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="path1" />, <paramref name="path2" />, or <paramref name="path3" /> is <see langword="null" />.</exception>
// Token: 0x06001A34 RID: 6708 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001A34")]
[Address(RVA = "0xCC5D90", Offset = "0xCC4D90", VA = "0x180CC5D90")]
public static string Combine(string path1, string path2, string path3)
{
return null;
}
// Token: 0x06001A35 RID: 6709 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001A35")]
[Address(RVA = "0xCC8740", Offset = "0xCC7740", VA = "0x180CC8740")]
internal static void Validate(string path)
{
}
// Token: 0x06001A36 RID: 6710 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001A36")]
[Address(RVA = "0xCC8910", Offset = "0xCC7910", VA = "0x180CC8910")]
internal static void Validate(string path, string parameterName)
{
}
// Token: 0x17000325 RID: 805
// (get) Token: 0x06001A37 RID: 6711 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x17000325")]
internal static string DirectorySeparatorCharAsString
{
[Token(Token = "0x6001A37")]
[Address(RVA = "0xCC9060", Offset = "0xCC8060", VA = "0x180CC9060")]
get
{
return null;
}
}
// Token: 0x17000326 RID: 806
// (get) Token: 0x06001A38 RID: 6712 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x17000326")]
internal static char[] TrimEndChars
{
[Token(Token = "0x6001A38")]
[Address(RVA = "0xCC9120", Offset = "0xCC8120", VA = "0x180CC9120")]
get
{
return null;
}
}
// Token: 0x06001A39 RID: 6713 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001A39")]
[Address(RVA = "0xCC53F0", Offset = "0xCC43F0", VA = "0x180CC53F0")]
internal static void CheckSearchPattern(string searchPattern)
{
}
// Token: 0x06001A3A RID: 6714 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001A3A")]
[Address(RVA = "0xCC52E0", Offset = "0xCC42E0", VA = "0x180CC52E0")]
internal static void CheckInvalidPathChars(string path, bool checkAdditional = false)
{
}
// Token: 0x06001A3B RID: 6715 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001A3B")]
[Address(RVA = "0xCC7EE0", Offset = "0xCC6EE0", VA = "0x180CC7EE0")]
internal static string InternalCombine(string path1, string path2)
{
return null;
}
/// <summary>Provides a platform-specific array of characters that cannot be specified in path string arguments passed to members of the <see cref="T:System.IO.Path" /> class.</summary>
// Token: 0x04000DCF RID: 3535
[Token(Token = "0x4000DCF")]
[Obsolete]
public static readonly char[] InvalidPathChars;
/// <summary>Provides a platform-specific alternate character used to separate directory levels in a path string that reflects a hierarchical file system organization.</summary>
// Token: 0x04000DD0 RID: 3536
[Token(Token = "0x4000DD0")]
public static readonly char AltDirectorySeparatorChar;
/// <summary>Provides a platform-specific character used to separate directory levels in a path string that reflects a hierarchical file system organization.</summary>
// Token: 0x04000DD1 RID: 3537
[Token(Token = "0x4000DD1")]
public static readonly char DirectorySeparatorChar;
/// <summary>A platform-specific separator character used to separate path strings in environment variables.</summary>
// Token: 0x04000DD2 RID: 3538
[Token(Token = "0x4000DD2")]
public static readonly char PathSeparator;
// Token: 0x04000DD3 RID: 3539
[Token(Token = "0x4000DD3")]
internal static readonly string DirectorySeparatorStr;
/// <summary>Provides a platform-specific volume separator character.</summary>
// Token: 0x04000DD4 RID: 3540
[Token(Token = "0x4000DD4")]
public static readonly char VolumeSeparatorChar;
// Token: 0x04000DD5 RID: 3541
[Token(Token = "0x4000DD5")]
internal static readonly char[] PathSeparatorChars;
// Token: 0x04000DD6 RID: 3542
[Token(Token = "0x4000DD6")]
private static readonly bool dirEqualsVolume;
// Token: 0x04000DD7 RID: 3543
[Token(Token = "0x4000DD7")]
internal static readonly char[] trimEndCharsWindows;
// Token: 0x04000DD8 RID: 3544
[Token(Token = "0x4000DD8")]
internal static readonly char[] trimEndCharsUnix;
}
}