From 35d9b29c97379b40a6ba4554bd066cc2c25217ee Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Tue, 11 Jun 2013 16:35:54 -0400 Subject: fixed issue of not seeing network shares --- MediaBrowser.Controller/IO/NativeMethods.cs | 97 ----------------------------- 1 file changed, 97 deletions(-) (limited to 'MediaBrowser.Controller/IO/NativeMethods.cs') diff --git a/MediaBrowser.Controller/IO/NativeMethods.cs b/MediaBrowser.Controller/IO/NativeMethods.cs index 2f15f124d..5b9bf52a8 100644 --- a/MediaBrowser.Controller/IO/NativeMethods.cs +++ b/MediaBrowser.Controller/IO/NativeMethods.cs @@ -216,103 +216,6 @@ namespace MediaBrowser.Controller.IO [MarshalAs(UnmanagedType.ByValTStr, SizeConst = NativeMethods.MAX_ALTERNATE)] public string cAlternate; - /// - /// Gets a value indicating whether this instance is hidden. - /// - /// true if this instance is hidden; otherwise, false. - public bool IsHidden - { - get - { - return dwFileAttributes.HasFlag(FileAttributes.Hidden); - } - } - - /// - /// Gets a value indicating whether this instance is system file. - /// - /// true if this instance is system file; otherwise, false. - public bool IsSystemFile - { - get - { - return dwFileAttributes.HasFlag(FileAttributes.System); - } - } - - /// - /// Gets a value indicating whether this instance is directory. - /// - /// true if this instance is directory; otherwise, false. - public bool IsDirectory - { - get - { - return dwFileAttributes.HasFlag(FileAttributes.Directory); - } - } - - /// - /// Gets the creation time UTC. - /// - /// The creation time UTC. - public DateTime CreationTimeUtc - { - get - { - return ParseFileTime(ftCreationTime); - } - } - - /// - /// Gets the last access time UTC. - /// - /// The last access time UTC. - public DateTime LastAccessTimeUtc - { - get - { - return ParseFileTime(ftLastAccessTime); - } - } - - /// - /// Gets the last write time UTC. - /// - /// The last write time UTC. - public DateTime LastWriteTimeUtc - { - get - { - return ParseFileTime(ftLastWriteTime); - } - } - - /// - /// Parses the file time. - /// - /// The filetime. - /// DateTime. - private DateTime ParseFileTime(FILETIME filetime) - { - long highBits = filetime.dwHighDateTime; - highBits = highBits << 32; - - var val = highBits + (long) filetime.dwLowDateTime; - - if (val < 0L) - { - return DateTime.MinValue; - } - - if (val > 2650467743999999999L) - { - return DateTime.MaxValue; - } - - return DateTime.FromFileTimeUtc(val); - } - /// /// Gets or sets the path. /// -- cgit v1.2.3