@@ -109,10 +109,6 @@ internal static void Cleanup()
109109 /// Initializes a new instance of the <see cref="TempDirectory"/> class.
110110 /// Creates a new temporary directory with a random name.
111111 /// </summary>
112- /// <param name="ignoreLockedFiles">
113- /// When <c>true</c>, locked files will be silently ignored during disposal instead of throwing an exception.
114- /// The directory will be cleaned up once it ages out (24 hours).
115- /// </param>
116112 /// <remarks>
117113 /// Each instance creates a unique subdirectory under <see cref="RootDirectory"/>
118114 /// using <see cref="Path.GetRandomFileName"/> to generate a random name.
@@ -125,6 +121,22 @@ public TempDirectory() : this(false)
125121 {
126122 }
127123
124+ /// <summary>
125+ /// Initializes a new instance of the <see cref="TempDirectory"/> class.
126+ /// Creates a new temporary directory with a random name.
127+ /// </summary>
128+ /// <param name="ignoreLockedFiles">
129+ /// When <c>true</c>, locked files will be silently ignored during disposal instead of throwing an exception.
130+ /// The directory will be cleaned up once it ages out (24 hours).
131+ /// </param>
132+ /// <remarks>
133+ /// Each instance creates a unique subdirectory under <see cref="RootDirectory"/>
134+ /// using <see cref="Path.GetRandomFileName"/> to generate a random name.
135+ /// The directory is created immediately upon construction.
136+ /// </remarks>
137+ /// <exception cref="IOException">
138+ /// Thrown if the directory cannot be created (e.g., due to permissions or disk space).
139+ /// </exception>
128140 [ OverloadResolutionPriority ( 1 ) ]
129141 public TempDirectory ( bool ignoreLockedFiles )
130142 {
@@ -270,4 +282,4 @@ public static implicit operator DirectoryInfo(TempDirectory temp) =>
270282 /// </summary>
271283 public string BuildPath ( params ReadOnlySpan < string > paths ) =>
272284 IoPath . Combine ( [ Path , ..paths ] ) ;
273- }
285+ }
0 commit comments