diff --git a/twander.py b/twander.py index 7938c54..e4f1063 100755 --- a/twander.py +++ b/twander.py @@ -6,7 +6,7 @@ # Program Information PROGNAME = "twander" -RCSID = "$Id: twander.py,v 3.186 2005/01/29 04:54:06 tundra Exp $" +RCSID = "$Id: twander.py,v 3.187 2005/02/01 22:11:09 tundra Exp $" VERSION = RCSID.split()[2] # Copyright Information @@ -4011,7 +4011,6 @@ # Total Space tspace = clustersz * sectorsz * totalclusters - UI.TotalSize += tspace totalspace = FileLength(tspace) except: @@ -4031,6 +4030,18 @@ entry += drive fields.append(drive) + # Filter through any active wildcard + + matchthis = drive + if UI.DetailsOn: + matchthis = entry + + if not FilterWildcardMatch(matchthis): + continue + + # Keep running total of available space + UI.TotalSize += tspace + # If we're not going to sort later, just build the list # of drives now