-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathQuickIOFile_FileTime.cs
More file actions
471 lines (459 loc) · 24.1 KB
/
QuickIOFile_FileTime.cs
File metadata and controls
471 lines (459 loc) · 24.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
// ------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a T4 template.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
// ------------------------------------------------------------------------------
#nullable enable
using System;
using SchwabenCode.QuickIO.Internal;
using SchwabenCode.QuickIO.Win32API;
namespace SchwabenCode.QuickIO;
public partial class QuickIOFile
{
/// <summary>
/// Returns the creation time of the file or directory
/// </summary>
/// <param name="path">Affected file or directory</param>
/// <returns>A <see cref="DateTime"/> structure.</returns>
/// <remarks>http://msdn.microsoft.com/en-us/library/system.io.file.getcreationtime(v=vs.110).aspx</remarks>
/// <exception cref="PathNotFoundException">No entry found for passed path</exception>
public static DateTime GetCreationTime( String path )
{
return GetCreationTimeUtc( path ).ToLocalTime( );
}
/// <summary>
/// Returns the creation time of the file or directory
/// </summary>
/// <param name="info">Affected file or directory</param>
/// <returns>A <see cref="DateTime"/> structure.</returns>
/// <remarks>http://msdn.microsoft.com/en-us/library/system.io.file.getcreationtime(v=vs.110).aspx</remarks>
/// <exception cref="PathNotFoundException">No entry found for passed path</exception>
public static DateTime GetCreationTime( QuickIOPathInfo info )
{
return GetCreationTimeUtc( info ).ToLocalTime( );
}
/// <summary>
/// Returns the creation time of the file or directory
/// </summary>
/// <param name="info">Affected file or directory</param>
/// <returns>A <see cref="DateTime"/> structure.</returns>
/// <remarks>http://msdn.microsoft.com/en-us/library/system.io.file.getcreationtime(v=vs.110).aspx</remarks>
/// <exception cref="PathNotFoundException">No entry found for passed path</exception>
public static DateTime GetCreationTime( QuickIOFileInfo info )
{
return GetCreationTimeUtc( info.PathInfo ).ToLocalTime( );
}
/// <summary>
/// Returns the creation time of the file or directory (UTC)
/// </summary>
/// <param name="path">Affected file or directory</param>
/// <returns>A <see cref="DateTime"/> structure. (UTC)</returns>
/// <remarks>http://msdn.microsoft.com/en-us/library/system.io.file.getcreationtimeutc(v=vs.110).aspx</remarks>
/// <exception cref="PathNotFoundException">No entry found for passed path</exception>
public static DateTime GetCreationTimeUtc( String path )
{
return GetCreationTimeUtc( new QuickIOPathInfo( path ) );
}
/// <summary>
/// Returns the creation time of the file or directory (UTC)
/// </summary>
/// <param name="info">Affected file or directory</param>
/// <returns>A <see cref="DateTime"/> structure. (UTC)</returns>
/// <remarks>http://msdn.microsoft.com/en-us/library/system.io.file.getcreationtimeutc(v=vs.110).aspx</remarks>
/// <exception cref="PathNotFoundException">No entry found for passed path</exception>
public static DateTime GetCreationTimeUtc( QuickIOPathInfo info )
{
return info.FindData.GetCreationTimeUtc( );
}
/// <summary>
/// Returns the creation time of the file or directory (UTC)
/// </summary>
/// <param name="info">Affected file or directory</param>
/// <returns>A <see cref="DateTime"/> structure. (UTC)</returns>
/// <remarks>http://msdn.microsoft.com/en-us/library/system.io.file.getcreationtimeutc(v=vs.110).aspx</remarks>
/// <exception cref="PathNotFoundException">No entry found for passed path</exception>
public static DateTime? GetCreationTimeUtc( QuickIOFileInfo info )
{
return info.FindData?.GetCreationTimeUtc( );
}
/// <summary>
/// Returns the time of last access of the file or directory
/// </summary>
/// <param name="path">Affected file or directory</param>
/// <returns>A <see cref="DateTime"/> structure.</returns>
/// <remarks>http://msdn.microsoft.com/en-us/library/system.io.file.getlastaccesstime(v=vs.110).aspx</remarks>
/// <exception cref="PathNotFoundException">No entry found for passed path</exception>
public static DateTime GetLastAccessTime( String path )
{
return GetLastAccessTimeUtc( path ).ToLocalTime( );
}
/// <summary>
/// Returns the time of last access of the file or directory
/// </summary>
/// <param name="info">Affected file or directory</param>
/// <returns>A <see cref="DateTime"/> structure.</returns>
/// <remarks>http://msdn.microsoft.com/en-us/library/system.io.file.getlastaccesstime(v=vs.110).aspx</remarks>
/// <exception cref="PathNotFoundException">No entry found for passed path</exception>
public static DateTime GetLastAccessTime( QuickIOPathInfo info )
{
return GetLastAccessTimeUtc( info ).ToLocalTime( );
}
/// <summary>
/// Returns the time of last access of the file or directory
/// </summary>
/// <param name="info">Affected file or directory</param>
/// <returns>A <see cref="DateTime"/> structure.</returns>
/// <remarks>http://msdn.microsoft.com/en-us/library/system.io.file.getlastaccesstime(v=vs.110).aspx</remarks>
/// <exception cref="PathNotFoundException">No entry found for passed path</exception>
public static DateTime GetLastAccessTime( QuickIOFileInfo info )
{
return GetLastAccessTimeUtc( info.PathInfo ).ToLocalTime( );
}
/// <summary>
/// Returns the time of last access of the file or directory (UTC)
/// </summary>
/// <param name="path">Affected file or directory</param>
/// <returns>A <see cref="DateTime"/> structure. (UTC)</returns>
/// <remarks>http://msdn.microsoft.com/en-us/library/system.io.file.getlastaccesstimeutc(v=vs.110).aspx</remarks>
/// <exception cref="PathNotFoundException">No entry found for passed path</exception>
public static DateTime GetLastAccessTimeUtc( String path )
{
return GetLastAccessTimeUtc( new QuickIOPathInfo( path ) );
}
/// <summary>
/// Returns the time of last access of the file or directory (UTC)
/// </summary>
/// <param name="info">Affected file or directory</param>
/// <returns>A <see cref="DateTime"/> structure. (UTC)</returns>
/// <remarks>http://msdn.microsoft.com/en-us/library/system.io.file.getlastaccesstimeutc(v=vs.110).aspx</remarks>
/// <exception cref="PathNotFoundException">No entry found for passed path</exception>
public static DateTime GetLastAccessTimeUtc( QuickIOPathInfo info )
{
return info.FindData.GetLastAccessTimeUtc( );
}
/// <summary>
/// Returns the time of last access of the file or directory (UTC)
/// </summary>
/// <param name="info">Affected file or directory</param>
/// <returns>A <see cref="DateTime"/> structure. (UTC)</returns>
/// <remarks>http://msdn.microsoft.com/en-us/library/system.io.file.getlastaccesstimeutc(v=vs.110).aspx</remarks>
/// <exception cref="PathNotFoundException">No entry found for passed path</exception>
public static DateTime? GetLastAccessTimeUtc( QuickIOFileInfo info )
{
return info.FindData?.GetLastAccessTimeUtc( );
}
/// <summary>
/// Returns the time of the file or directory was last written
/// </summary>
/// <param name="path">Affected file or directory</param>
/// <returns>A <see cref="DateTime"/> structure.</returns>
/// <remarks>http://msdn.microsoft.com/en-us/library/system.io.file.getlastwritetime(v=vs.110).aspx</remarks>
/// <exception cref="PathNotFoundException">No entry found for passed path</exception>
public static DateTime GetLastWriteTime( String path )
{
return GetLastWriteTimeUtc( path ).ToLocalTime( );
}
/// <summary>
/// Returns the time of the file or directory was last written
/// </summary>
/// <param name="info">Affected file or directory</param>
/// <returns>A <see cref="DateTime"/> structure.</returns>
/// <remarks>http://msdn.microsoft.com/en-us/library/system.io.file.getlastwritetime(v=vs.110).aspx</remarks>
/// <exception cref="PathNotFoundException">No entry found for passed path</exception>
public static DateTime GetLastWriteTime( QuickIOPathInfo info )
{
return GetLastWriteTimeUtc( info ).ToLocalTime( );
}
/// <summary>
/// Returns the time of the file or directory was last written
/// </summary>
/// <param name="info">Affected file or directory</param>
/// <returns>A <see cref="DateTime"/> structure.</returns>
/// <remarks>http://msdn.microsoft.com/en-us/library/system.io.file.getlastwritetime(v=vs.110).aspx</remarks>
/// <exception cref="PathNotFoundException">No entry found for passed path</exception>
public static DateTime GetLastWriteTime( QuickIOFileInfo info )
{
return GetLastWriteTimeUtc( info.PathInfo ).ToLocalTime( );
}
/// <summary>
/// Returns the time of the file or directory was last written (UTC)
/// </summary>
/// <param name="path">Affected file or directory</param>
/// <returns>A <see cref="DateTime"/> structure. (UTC)</returns>
/// <remarks>http://msdn.microsoft.com/en-us/library/system.io.file.getlastwritetimeutc(v=vs.110).aspx</remarks>
/// <exception cref="PathNotFoundException">No entry found for passed path</exception>
public static DateTime GetLastWriteTimeUtc( String path )
{
return GetLastWriteTimeUtc( new QuickIOPathInfo( path ) );
}
/// <summary>
/// Returns the time of the file or directory was last written (UTC)
/// </summary>
/// <param name="info">Affected file or directory</param>
/// <returns>A <see cref="DateTime"/> structure. (UTC)</returns>
/// <remarks>http://msdn.microsoft.com/en-us/library/system.io.file.getlastwritetimeutc(v=vs.110).aspx</remarks>
/// <exception cref="PathNotFoundException">No entry found for passed path</exception>
public static DateTime GetLastWriteTimeUtc( QuickIOPathInfo info )
{
return info.FindData.GetLastWriteTimeUtc( );
}
/// <summary>
/// Returns the time of the file or directory was last written (UTC)
/// </summary>
/// <param name="info">Affected file or directory</param>
/// <returns>A <see cref="DateTime"/> structure. (UTC)</returns>
/// <remarks>http://msdn.microsoft.com/en-us/library/system.io.file.getlastwritetimeutc(v=vs.110).aspx</remarks>
/// <exception cref="PathNotFoundException">No entry found for passed path</exception>
public static DateTime? GetLastWriteTimeUtc( QuickIOFileInfo info )
{
return info.FindData?.GetLastWriteTimeUtc( );
}
/// <summary>
/// Sets the time the file was created.
/// </summary>
/// <param name="path">Affected file or directory</param>
/// <param name="creationTime">The time that is to be used</param>
/// <param name="lastAccessTime">The time that is to be used</param>
/// <param name="lastWriteTime">The time that is to be used</param>
public static void SetAllFileTimes( String path, DateTime creationTime, DateTime lastAccessTime, DateTime lastWriteTime )
{
SetAllFileTimesUtc( path, creationTime.ToUniversalTime( ), lastAccessTime.ToUniversalTime( ), lastWriteTime.ToUniversalTime( ) );
}
/// <summary>
/// Sets the time the file was created.
/// </summary>
/// <param name="info">Affected file or directory</param>
/// <param name="creationTime">The time that is to be used</param>
/// <param name="lastAccessTime">The time that is to be used</param>
/// <param name="lastWriteTime">The time that is to be used</param>
public static void SetAllFileTimes( QuickIOPathInfo info, DateTime creationTime, DateTime lastAccessTime, DateTime lastWriteTime )
{
SetAllFileTimesUtc( info, creationTime.ToUniversalTime( ), lastAccessTime.ToUniversalTime( ), lastWriteTime.ToUniversalTime( ) );
}
/// <summary>
/// Sets the time the file was created.
/// </summary>
/// <param name="info">Affected file or directory</param>
/// <param name="creationTime">The time that is to be used</param>
/// <param name="lastAccessTime">The time that is to be used</param>
/// <param name="lastWriteTime">The time that is to be used</param>
public static void SetAllFileTimes( QuickIOFileInfo info, DateTime creationTime, DateTime lastAccessTime, DateTime lastWriteTime )
{
SetAllFileTimesUtc( info, creationTime.ToUniversalTime( ), lastAccessTime.ToUniversalTime( ), lastWriteTime.ToUniversalTime( ) );
}
/// <summary>
/// Sets the dates and times of given directory or file.
/// </summary>
/// <param name="path">Affected file or directory</param>
/// <param name="creationTimeUtc">The time that is to be used (UTC)</param>
/// <param name="lastAccessTimeUtc">The time that is to be used (UTC)</param>
/// <param name="lastWriteTimeUtc">The time that is to be used (UTC)</param>
public static void SetAllFileTimesUtc( String path, DateTime creationTimeUtc, DateTime lastAccessTimeUtc, DateTime lastWriteTimeUtc )
{
InternalQuickIO.SetAllFileTimes( new QuickIOPathInfo( path ), creationTimeUtc, lastAccessTimeUtc, lastWriteTimeUtc );
}
/// <summary>
/// Sets the dates and times of given directory or file.
/// </summary>
/// <param name="info">Affected file or directory</param>
/// <param name="creationTimeUtc">The time that is to be used (UTC)</param>
/// <param name="lastAccessTimeUtc">The time that is to be used (UTC)</param>
/// <param name="lastWriteTimeUtc">The time that is to be used (UTC)</param>
public static void SetAllFileTimesUtc( QuickIOPathInfo info, DateTime creationTimeUtc, DateTime lastAccessTimeUtc, DateTime lastWriteTimeUtc )
{
InternalQuickIO.SetAllFileTimes( info, creationTimeUtc, lastAccessTimeUtc, lastWriteTimeUtc );
}
/// <summary>
/// Sets the dates and times of given directory or file.
/// </summary>
/// <param name="info">Affected file or directory</param>
/// <param name="creationTimeUtc">The time that is to be used (UTC)</param>
/// <param name="lastAccessTimeUtc">The time that is to be used (UTC)</param>
/// <param name="lastWriteTimeUtc">The time that is to be used (UTC)</param>
public static void SetAllFileTimesUtc( QuickIOFileInfo info, DateTime creationTimeUtc, DateTime lastAccessTimeUtc, DateTime lastWriteTimeUtc )
{
InternalQuickIO.SetAllFileTimes( info.PathInfo, creationTimeUtc, lastAccessTimeUtc, lastWriteTimeUtc );
}
/// <summary>
/// Defines the time at which the file or directory was created
/// </summary>
/// <param name="path">Affected file or directory</param>
/// <param name="creationTime">The time that is to be used</param>
/// <remarks>http://msdn.microsoft.com/en-us/library/system.io.file.setcreationtime(v=vs.110).aspx</remarks>
public static void SetCreationTime( String path, DateTime creationTime )
{
SetCreationTimeUtc( path, creationTime.ToUniversalTime( ) );
}
/// <summary>
/// Defines the time at which the file or directory was created
/// </summary>
/// <param name="info">Affected file or directory</param>
/// <param name="creationTime">The time that is to be used</param>
/// <remarks>http://msdn.microsoft.com/en-us/library/system.io.file.setcreationtime(v=vs.110).aspx</remarks>
public static void SetCreationTime( QuickIOPathInfo info, DateTime creationTime )
{
SetCreationTimeUtc( info, creationTime.ToUniversalTime( ) );
}
/// <summary>
/// Defines the time at which the file or directory was created
/// </summary>
/// <param name="info">Affected file or directory</param>
/// <param name="creationTime">The time that is to be used</param>
/// <remarks>http://msdn.microsoft.com/en-us/library/system.io.file.setcreationtime(v=vs.110).aspx</remarks>
public static void SetCreationTime( QuickIOFileInfo info, DateTime creationTime )
{
SetCreationTimeUtc( info, creationTime.ToUniversalTime( ) );
}
/// <summary>
/// Defines the time at which the file or directory was created (UTC)
/// </summary>
/// <param name="path">Affected file or directory</param>
/// <param name="creationTimeUtc">The time that is to be used (UTC)</param>
/// <remarks>http://msdn.microsoft.com/en-us/library/system.io.file.setcreationtimeutc(v=vs.110).aspx</remarks>
public static void SetCreationTimeUtc( String path, DateTime creationTimeUtc )
{
InternalQuickIO.SetCreationTimeUtc( new QuickIOPathInfo( path ), creationTimeUtc );
}
/// <summary>
/// Defines the time at which the file or directory was created (UTC)
/// </summary>
/// <param name="info">Affected file or directory</param>
/// <param name="creationTimeUtc">The time that is to be used (UTC)</param>
/// <remarks>http://msdn.microsoft.com/en-us/library/system.io.file.setcreationtimeutc(v=vs.110).aspx</remarks>
public static void SetCreationTimeUtc( QuickIOPathInfo info, DateTime creationTimeUtc )
{
InternalQuickIO.SetCreationTimeUtc( info, creationTimeUtc );
}
/// <summary>
/// Defines the time at which the file or directory was created (UTC)
/// </summary>
/// <param name="info">Affected file or directory</param>
/// <param name="creationTimeUtc">The time that is to be used (UTC)</param>
/// <remarks>http://msdn.microsoft.com/en-us/library/system.io.file.setcreationtimeutc(v=vs.110).aspx</remarks>
public static void SetCreationTimeUtc( QuickIOFileInfo info, DateTime creationTimeUtc )
{
InternalQuickIO.SetCreationTimeUtc( info.PathInfo, creationTimeUtc );
}
/// <summary>
/// Defines the time at which the file or directory was last accessed
/// </summary>
/// <param name="path">Affected file or directory</param>
/// <param name="lastAccessTime">The time that is to be used</param>
/// <remarks>http://msdn.microsoft.com/en-us/library/system.io.file.setcreationtime(v=vs.110).aspx</remarks>
public static void SetLastAccessTime( String path, DateTime lastAccessTime )
{
SetLastAccessTimeUtc( path, lastAccessTime.ToUniversalTime( ) );
}
/// <summary>
/// Defines the time at which the file or directory was last accessed
/// </summary>
/// <param name="info">Affected file or directory</param>
/// <param name="lastAccessTime">The time that is to be used</param>
/// <remarks>http://msdn.microsoft.com/en-us/library/system.io.file.setlastaccesstime(v=vs.110).aspx</remarks>
public static void SetLastAccessTime( QuickIOPathInfo info, DateTime lastAccessTime )
{
SetLastAccessTimeUtc( info, lastAccessTime.ToUniversalTime( ) );
}
/// <summary>
/// Defines the time at which the file or directory was last accessed
/// </summary>
/// <param name="info">Affected file or directory</param>
/// <param name="lastAccessTime">The time that is to be used</param>
/// <remarks>http://msdn.microsoft.com/en-us/library/system.io.file.setlastaccesstime(v=vs.110).aspx</remarks>
public static void SetLastAccessTime( QuickIOFileInfo info, DateTime lastAccessTime )
{
SetLastAccessTimeUtc( info, lastAccessTime.ToUniversalTime( ) );
}
/// <summary>
/// Defines the time at which the file or directory was last accessed (UTC)
/// </summary>
/// <param name="path">Affected file or directory</param>
/// <param name="lastAccessTimeUtc">The time that is to be used (UTC)</param>
/// <remarks>http://msdn.microsoft.com/en-us/library/system.io.file.setlastaccesstimeutc(v=vs.110).aspx</remarks>
public static void SetLastAccessTimeUtc( String path, DateTime lastAccessTimeUtc )
{
InternalQuickIO.SetLastAccessTimeUtc( new QuickIOPathInfo( path ), lastAccessTimeUtc );
}
/// <summary>
/// Defines the time at which the file or directory was last accessed (UTC)
/// </summary>
/// <param name="info">Affected file or directory</param>
/// <param name="lastAccessTimeUtc">The time that is to be used (UTC)</param>
/// <remarks>http://msdn.microsoft.com/en-us/library/system.io.file.setlastaccesstimeutc(v=vs.110).aspx</remarks>
public static void SetLastAccessTimeUtc( QuickIOPathInfo info, DateTime lastAccessTimeUtc )
{
InternalQuickIO.SetLastAccessTimeUtc( info, lastAccessTimeUtc );
}
/// <summary>
/// Defines the time at which the file or directory was last accessed (UTC)
/// </summary>
/// <param name="info">Affected file or directory</param>
/// <param name="lastAccessTimeUtc">The time that is to be used (UTC)</param>
/// <remarks>http://msdn.microsoft.com/en-us/library/system.io.file.setlastaccesstimeutc(v=vs.110).aspx</remarks>
public static void SetLastAccessTimeUtc( QuickIOFileInfo info, DateTime lastAccessTimeUtc )
{
InternalQuickIO.SetLastAccessTimeUtc( info.PathInfo, lastAccessTimeUtc );
}
/// <summary>
/// Defines the time at which the file or directory was last written
/// </summary>
/// <param name="path">Affected file or directory</param>
/// <param name="lastWriteTime">The time that is to be used</param>
/// <remarks>http://msdn.microsoft.com/en-us/library/system.io.file.setcreationtime(v=vs.110).aspx</remarks>
public static void SetLastWriteTime( String path, DateTime lastWriteTime )
{
SetLastWriteTimeUtc( path, lastWriteTime.ToUniversalTime( ) );
}
/// <summary>
/// Defines the time at which the file or directory was last written
/// </summary>
/// <param name="info">Affected file or directory</param>
/// <param name="lastWriteTime">The time that is to be used</param>
/// <remarks>http://msdn.microsoft.com/en-us/library/system.io.file.setlastwritetime(v=vs.110).aspx</remarks>
public static void SetLastWriteTime( QuickIOPathInfo info, DateTime lastWriteTime )
{
SetLastWriteTimeUtc( info, lastWriteTime.ToUniversalTime( ) );
}
/// <summary>
/// Defines the time at which the file or directory was last written
/// </summary>
/// <param name="info">Affected file or directory</param>
/// <param name="lastWriteTime">The time that is to be used</param>
/// <remarks>http://msdn.microsoft.com/en-us/library/system.io.file.setlastwritetime(v=vs.110).aspx</remarks>
public static void SetLastWriteTime( QuickIOFileInfo info, DateTime lastWriteTime )
{
SetLastWriteTimeUtc( info, lastWriteTime.ToUniversalTime( ) );
}
/// <summary>
/// Defines the time at which the file or directory was last written (UTC)
/// </summary>
/// <param name="path">Affected file or directory</param>
/// <param name="lastWriteTimeUtc">The time that is to be used (UTC)</param>
/// <remarks>http://msdn.microsoft.com/en-us/library/system.io.file.setlastwritetimeutc(v=vs.110).aspx</remarks>
public static void SetLastWriteTimeUtc( String path, DateTime lastWriteTimeUtc )
{
InternalQuickIO.SetLastWriteTimeUtc( new QuickIOPathInfo( path ), lastWriteTimeUtc );
}
/// <summary>
/// Defines the time at which the file or directory was last written (UTC)
/// </summary>
/// <param name="info">Affected file or directory</param>
/// <param name="lastWriteTimeUtc">The time that is to be used (UTC)</param>
/// <remarks>http://msdn.microsoft.com/en-us/library/system.io.file.setlastwritetimeutc(v=vs.110).aspx</remarks>
public static void SetLastWriteTimeUtc( QuickIOPathInfo info, DateTime lastWriteTimeUtc )
{
InternalQuickIO.SetLastWriteTimeUtc( info, lastWriteTimeUtc );
}
/// <summary>
/// Defines the time at which the file or directory was last written (UTC)
/// </summary>
/// <param name="info">Affected file or directory</param>
/// <param name="lastWriteTimeUtc">The time that is to be used (UTC)</param>
/// <remarks>http://msdn.microsoft.com/en-us/library/system.io.file.setlastwritetimeutc(v=vs.110).aspx</remarks>
public static void SetLastWriteTimeUtc( QuickIOFileInfo info, DateTime lastWriteTimeUtc )
{
InternalQuickIO.SetLastWriteTimeUtc( info.PathInfo, lastWriteTimeUtc );
}
}