Skip to content

Commit

Permalink
2004-06-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Browse files Browse the repository at this point in the history
	* Directory.cs: implemented GetLogicalDrives.

svn path=/trunk/mcs/; revision=30300
  • Loading branch information
gonzalop committed Jun 24, 2004
1 parent df7da47 commit 809c3d5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
4 changes: 4 additions & 0 deletions mcs/class/corlib/System.IO/ChangeLog
@@ -1,3 +1,7 @@
2004-06-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* Directory.cs: implemented GetLogicalDrives.

2004-06-24 Lluis Sanchez Gual <lluis@novell.com>

* StreamReader.cs: In DiscardBufferedData(), reset the mayBlock flag.
Expand Down
7 changes: 1 addition & 6 deletions mcs/class/corlib/System.IO/Directory.cs
Expand Up @@ -251,14 +251,9 @@ public static string GetDirectoryRoot (string path)
return GetFileSystemEntries (path, pattern, 0, 0);
}

[MonoTODO("Implement on windows, for real")]
public static string[] GetLogicalDrives ()
{
//FIXME: Hardcoded Paths
if ((int)Environment.OSVersion.Platform == 128)
return new string[] { "/" };
else
return new string [] { "A:\\", "C:\\" };
return Environment.GetLogicalDrives ();
}

static bool IsRootDirectory (string path)
Expand Down

0 comments on commit 809c3d5

Please sign in to comment.