示例#1
0
        static void Main(string[] args)
        {
            var file         = new FileInfo("..//..//resources/USB-disk-image-FAT.E01");
            var diskImage    = new DiskImage(file);
            int volumeAdress = 2;

            using (VolumeSystem volumeSystem = diskImage.OpenVolumeSystem())
            {
                Volume volume = volumeSystem.Volumes.SingleOrDefault(v => v.Address == volumeAdress);

                //Assert.NotNull(volume);

                using (FileSystem fileSystem = volume.OpenFileSystem())
                {
                    //count += CountFiles(fileSystem.OpenRootDirectory());
                    fileSystem.WalkDirectories(
                        FindFiles_DirectoryWalkCallback,
                        DirWalkFlags.Recurse | DirWalkFlags.Unallocated);
                }
                Console.ReadKey();
                //Assert.AreEqual(37, FilePaths.Count()); //I think it should be 63 || Bala: Autopsy shows me that there are only 30 files
            }
        }