diff options
author | Kenneth Hsu <kennethhsu@gmail.com> | 2020-03-01 04:36:58 +0300 |
---|---|---|
committer | Kenneth Hsu <kennethhsu@gmail.com> | 2020-03-01 23:11:16 +0300 |
commit | bcabbe67c8f2a61e3a65a8e184055e39bf1cf8c6 (patch) | |
tree | 0ad5413f29284713f60dee1b7f1868a2748734c5 /thirdparty | |
parent | 17bcc0cddc3f46cb1694e2152258734574f0a54e (diff) |
Fix detection of block devices.
This appears to have been a copy/paste error.
The UnixSupport.dll file was compiled in Release mode.
Diffstat (limited to 'thirdparty')
-rw-r--r-- | thirdparty/UnixSupport/File.cs | 4 | ||||
-rw-r--r--[-rwxr-xr-x] | thirdparty/UnixSupport/UnixSupport.dll | bin | 8192 -> 8192 bytes |
2 files changed, 2 insertions, 2 deletions
diff --git a/thirdparty/UnixSupport/File.cs b/thirdparty/UnixSupport/File.cs index c49f3cf03..7a47fdd63 100644 --- a/thirdparty/UnixSupport/File.cs +++ b/thirdparty/UnixSupport/File.cs @@ -159,7 +159,7 @@ namespace UnixSupport /// <param name="path">The full path to look up</param>
public static FileType GetFileType(string path)
{
-
+
var fse = Mono.Unix.UnixFileInfo.GetFileSystemEntry(path);
if (fse.IsRegularFile)
return FileType.File;
@@ -174,7 +174,7 @@ namespace UnixSupport else if (fse.IsCharacterDevice)
return FileType.CharacterDevice;
else if (fse.IsBlockDevice)
- return FileType.CharacterDevice;
+ return FileType.BlockDevice;
else
return FileType.Unknown;
}
diff --git a/thirdparty/UnixSupport/UnixSupport.dll b/thirdparty/UnixSupport/UnixSupport.dll Binary files differindex 3e19cfe81..3d04df69f 100755..100644 --- a/thirdparty/UnixSupport/UnixSupport.dll +++ b/thirdparty/UnixSupport/UnixSupport.dll |