Files
2026-04-10 22:50:51 +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: 0x020002BC RID: 700
[Token(Token = "0x20002BC")]
[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: 0x060019D7 RID: 6615 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60019D7")]
[Address(RVA = "0x2942000", Offset = "0x2940E00", VA = "0x182942000")]
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: 0x060019D8 RID: 6616 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60019D8")]
[Address(RVA = "0x29429C0", Offset = "0x29417C0", VA = "0x1829429C0")]
public static string Combine(string path1, string path2)
{
return null;
}
// Token: 0x060019D9 RID: 6617 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60019D9")]
[Address(RVA = "0x29424D0", Offset = "0x29412D0", VA = "0x1829424D0")]
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: 0x060019DA RID: 6618 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60019DA")]
[Address(RVA = "0x2943230", Offset = "0x2942030", VA = "0x182943230")]
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: 0x060019DB RID: 6619 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60019DB")]
[Address(RVA = "0x2943650", Offset = "0x2942450", VA = "0x182943650")]
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: 0x060019DC RID: 6620 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60019DC")]
[Address(RVA = "0x29437C0", Offset = "0x29425C0", VA = "0x1829437C0")]
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: 0x060019DD RID: 6621 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60019DD")]
[Address(RVA = "0x2943760", Offset = "0x2942560", VA = "0x182943760")]
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: 0x060019DE RID: 6622 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60019DE")]
[Address(RVA = "0x2943BC0", Offset = "0x29429C0", VA = "0x182943BC0")]
public static string GetFullPath(string path)
{
return null;
}
// Token: 0x060019DF RID: 6623 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60019DF")]
[Address(RVA = "0x29438D0", Offset = "0x29426D0", VA = "0x1829438D0")]
internal static string GetFullPathInternal(string path)
{
return null;
}
// Token: 0x060019E0 RID: 6624
[Token(Token = "0x60019E0")]
[Address(RVA = "0x2943930", Offset = "0x2942730", VA = "0x182943930")]
private static extern int GetFullPathName(string path, int numBufferChars, StringBuilder buffer, ref IntPtr lpFilePartOrNull);
// Token: 0x060019E1 RID: 6625 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60019E1")]
[Address(RVA = "0x2943A10", Offset = "0x2942810", VA = "0x182943A10")]
internal static string GetFullPathName(string path)
{
return null;
}
// Token: 0x060019E2 RID: 6626 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60019E2")]
[Address(RVA = "0x2945980", Offset = "0x2944780", VA = "0x182945980")]
internal static string WindowsDriveAdjustment(string path)
{
return null;
}
// Token: 0x060019E3 RID: 6627 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60019E3")]
[Address(RVA = "0x29446D0", Offset = "0x29434D0", VA = "0x1829446D0")]
internal static string InsecureGetFullPath(string path)
{
return null;
}
// Token: 0x060019E4 RID: 6628 RVA: 0x00011130 File Offset: 0x0000F330
[Token(Token = "0x60019E4")]
[Address(RVA = "0x29450B0", Offset = "0x2943EB0", VA = "0x1829450B0")]
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: 0x060019E5 RID: 6629 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60019E5")]
[Address(RVA = "0x2943D30", Offset = "0x2942B30", VA = "0x182943D30")]
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: 0x060019E6 RID: 6630 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60019E6")]
[Address(RVA = "0x29444A0", Offset = "0x29432A0", VA = "0x1829444A0")]
public static string GetTempPath()
{
return null;
}
// Token: 0x060019E7 RID: 6631 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60019E7")]
[Address(RVA = "0x29460A0", Offset = "0x2944EA0", VA = "0x1829460A0")]
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: 0x060019E8 RID: 6632 RVA: 0x00011148 File Offset: 0x0000F348
[Token(Token = "0x60019E8")]
[Address(RVA = "0x29445C0", Offset = "0x29433C0", VA = "0x1829445C0")]
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: 0x060019E9 RID: 6633 RVA: 0x00011160 File Offset: 0x0000F360
[Token(Token = "0x60019E9")]
[Address(RVA = "0x2945140", Offset = "0x2943F40", VA = "0x182945140")]
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: 0x060019EA RID: 6634 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60019EA")]
[Address(RVA = "0x2943C20", Offset = "0x2942A20", VA = "0x182943C20")]
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: 0x060019EB RID: 6635 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60019EB")]
[Address(RVA = "0x2943CC0", Offset = "0x2942AC0", VA = "0x182943CC0")]
public static char[] GetInvalidPathChars()
{
return null;
}
// Token: 0x060019EC RID: 6636 RVA: 0x00011178 File Offset: 0x0000F378
[Token(Token = "0x60019EC")]
[Address(RVA = "0x2945EA0", Offset = "0x2944CA0", VA = "0x182945EA0")]
private static int findExtension(string path)
{
return 0;
}
// Token: 0x060019EE RID: 6638 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60019EE")]
[Address(RVA = "0x2944260", Offset = "0x2943060", VA = "0x182944260")]
private static string GetServerAndShare(string path)
{
return null;
}
// Token: 0x060019EF RID: 6639 RVA: 0x00011190 File Offset: 0x0000F390
[Token(Token = "0x60019EF")]
[Address(RVA = "0x2945310", Offset = "0x2944110", VA = "0x182945310")]
private static bool SameRoot(string root, string path)
{
return default(bool);
}
// Token: 0x060019F0 RID: 6640 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60019F0")]
[Address(RVA = "0x29417C0", Offset = "0x29405C0", VA = "0x1829417C0")]
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: 0x060019F1 RID: 6641 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60019F1")]
[Address(RVA = "0x2942EE0", Offset = "0x2941CE0", VA = "0x182942EE0")]
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: 0x060019F2 RID: 6642 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60019F2")]
[Address(RVA = "0x2942CC0", Offset = "0x2941AC0", VA = "0x182942CC0")]
public static string Combine(string path1, string path2, string path3)
{
return null;
}
// Token: 0x060019F3 RID: 6643 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60019F3")]
[Address(RVA = "0x2945620", Offset = "0x2944420", VA = "0x182945620")]
internal static void Validate(string path)
{
}
// Token: 0x060019F4 RID: 6644 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60019F4")]
[Address(RVA = "0x29457F0", Offset = "0x29445F0", VA = "0x1829457F0")]
internal static void Validate(string path, string parameterName)
{
}
// Token: 0x17000317 RID: 791
// (get) Token: 0x060019F5 RID: 6645 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x17000317")]
internal static string DirectorySeparatorCharAsString
{
[Token(Token = "0x60019F5")]
[Address(RVA = "0x2945F40", Offset = "0x2944D40", VA = "0x182945F40")]
get
{
return null;
}
}
// Token: 0x17000318 RID: 792
// (get) Token: 0x060019F6 RID: 6646 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x17000318")]
internal static char[] TrimEndChars
{
[Token(Token = "0x60019F6")]
[Address(RVA = "0x2946000", Offset = "0x2944E00", VA = "0x182946000")]
get
{
return null;
}
}
// Token: 0x060019F7 RID: 6647 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60019F7")]
[Address(RVA = "0x2942320", Offset = "0x2941120", VA = "0x182942320")]
internal static void CheckSearchPattern(string searchPattern)
{
}
// Token: 0x060019F8 RID: 6648 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60019F8")]
[Address(RVA = "0x2942210", Offset = "0x2941010", VA = "0x182942210")]
internal static void CheckInvalidPathChars(string path, bool checkAdditional = false)
{
}
// Token: 0x060019F9 RID: 6649 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60019F9")]
[Address(RVA = "0x2944E10", Offset = "0x2943C10", VA = "0x182944E10")]
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: 0x04000DC5 RID: 3525
[Token(Token = "0x4000DC5")]
[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: 0x04000DC6 RID: 3526
[Token(Token = "0x4000DC6")]
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: 0x04000DC7 RID: 3527
[Token(Token = "0x4000DC7")]
public static readonly char DirectorySeparatorChar;
/// <summary>A platform-specific separator character used to separate path strings in environment variables.</summary>
// Token: 0x04000DC8 RID: 3528
[Token(Token = "0x4000DC8")]
public static readonly char PathSeparator;
// Token: 0x04000DC9 RID: 3529
[Token(Token = "0x4000DC9")]
internal static readonly string DirectorySeparatorStr;
/// <summary>Provides a platform-specific volume separator character.</summary>
// Token: 0x04000DCA RID: 3530
[Token(Token = "0x4000DCA")]
public static readonly char VolumeSeparatorChar;
// Token: 0x04000DCB RID: 3531
[Token(Token = "0x4000DCB")]
internal static readonly char[] PathSeparatorChars;
// Token: 0x04000DCC RID: 3532
[Token(Token = "0x4000DCC")]
private static readonly bool dirEqualsVolume;
// Token: 0x04000DCD RID: 3533
[Token(Token = "0x4000DCD")]
internal static readonly char[] trimEndCharsWindows;
// Token: 0x04000DCE RID: 3534
[Token(Token = "0x4000DCE")]
internal static readonly char[] trimEndCharsUnix;
}
}