Skip to content

Commit f1bbc92

Browse files
authored
Merge pull request #992 from Unity-Technologies/unity-master-fix-driveinfo-isready
Fix monoTODO where driveinfo.IsReady is unimplemented FB1028143
2 parents 5ec8270 + 8aacdab commit f1bbc92

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mcs/class/corlib/System.IO/DriveInfo.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,10 +140,9 @@ public DirectoryInfo RootDirectory {
140140
}
141141
}
142142

143-
[MonoTODO("It always returns true")]
144143
public bool IsReady {
145144
get {
146-
return true;
145+
return Directory.Exists (Name);
147146
}
148147
}
149148

0 commit comments

Comments
 (0)