[Monodevelop-patches-list] r446 - trunk/MonoDevelop/src/Main/Base/Gui/Pads

commit-watcher at mono-cvs.ximian.com commit-watcher at mono-cvs.ximian.com
Sun Jan 11 15:26:39 EST 2004


Author: pedroas
Date: 2004-01-11 15:26:39 -0500 (Sun, 11 Jan 2004)
New Revision: 446

Modified:
   trunk/MonoDevelop/src/Main/Base/Gui/Pads/UnixFileScout.cs
Log:
Don't show hidden directories, too (need an option to activate this)


Modified: trunk/MonoDevelop/src/Main/Base/Gui/Pads/UnixFileScout.cs
===================================================================
--- trunk/MonoDevelop/src/Main/Base/Gui/Pads/UnixFileScout.cs	2004-01-11 19:47:24 UTC (rev 445)
+++ trunk/MonoDevelop/src/Main/Base/Gui/Pads/UnixFileScout.cs	2004-01-11 20:26:39 UTC (rev 446)
@@ -640,6 +640,9 @@
 					try {
 						string dir = System.IO.Path.GetFileName(fulldir);
 						
+						if (dir == null || dir.Length == 0 || dir[0] == '.') {
+							continue;
+						}
 						FileAttributes attr = File.GetAttributes(fulldir);
 						if ((attr & FileAttributes.Hidden) == 0) {
 							TreeNode node   = curNode.Nodes.Add(dir);




More information about the Monodevelop-patches-list mailing list