浏览代码

DirectoryFileSystem: Updated Name property to return the name of the underlying file system

Tal Aloni 8 年之前
父节点
当前提交
efbf28036e
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      SMBServer/DirectoryFileSystem/DirectoryFileSystem.cs

+ 2 - 1
SMBServer/DirectoryFileSystem/DirectoryFileSystem.cs

@@ -286,7 +286,8 @@ namespace SMBServer
         {
             get
             {
-                return "DirFS";
+                DriveInfo drive = new DriveInfo(m_directory.FullName.Substring(0, 2));
+                return drive.DriveFormat;
             }
         }