FileSystemHelper.cs 832 B

123456789101112131415161718192021222324252627
  1. /* Copyright (C) 2014-2016 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved.
  2. *
  3. * You can redistribute this program and/or modify it under the terms of
  4. * the GNU Lesser Public License as published by the Free Software Foundation,
  5. * either version 3 of the License, or (at your option) any later version.
  6. */
  7. using System;
  8. using System.Collections.Generic;
  9. using System.Text;
  10. using DiskAccessLibrary.FileSystems.NTFS;
  11. using Utilities;
  12. namespace DiskAccessLibrary.FileSystems
  13. {
  14. public class FileSystemHelper
  15. {
  16. public static FileSystem ReadFileSystem(Volume volume)
  17. {
  18. NTFSFileSystem ntfs = new NTFSFileSystem(volume);
  19. if (ntfs.IsValidAndSupported)
  20. {
  21. return ntfs;
  22. }
  23. return null;
  24. }
  25. }
  26. }