예제 #1
0
 public void CreateDirectoryTree()
 {
     using (var testEnvironment = StreamTestEnvironment.FromExistingVhdx(true))
     {
         using (var filesystem = new ExFatPathFilesystem(testEnvironment.PartitionStream))
         {
             var now  = DateTime.UtcNow;
             var path = @"a\b\c";
             filesystem.CreateDirectory(path);
             var d = filesystem.GetCreationTimeUtc(path);
             Assert.IsTrue(IsAlmostMoreRecentThan(d, now));
         }
     }
 }
예제 #2
0
 /// <inheritdoc />
 public override DateTime GetCreationTimeUtc(string path)
 {
     return(_filesystem.GetCreationTimeUtc(path));
 }