Changeset 743 for xmlTools/trunk/posUpdate/Util.cs
- Timestamp:
- Mar 26, 2013, 11:39:19 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
xmlTools/trunk/posUpdate/Util.cs
r742 r743 87 87 { 88 88 List<String> xmlFiles = new List<String>(); 89 String[] files = System.IO.Directory.GetFiles(getExePath()); //Get all files in executable directory 89 90 String dir = Path.GetDirectoryName(filewildcard); // Get the specified directory 91 if (dir == "") 92 { 93 dir = Util.getExePath(); 94 } 95 String wildcard = Path.GetFileName(filewildcard); // Get files/wildcard 96 String[] files = System.IO.Directory.GetFiles(dir); //Get all files in specified directory 90 97 91 98 foreach (String file in files) 92 99 { 93 Regex wildcardRegex = new Regex(Util.WildcardToRegex( filewildcard), RegexOptions.IgnoreCase); //case insensitivity100 Regex wildcardRegex = new Regex(Util.WildcardToRegex(wildcard), RegexOptions.IgnoreCase); //case insensitivity 94 101 if (wildcardRegex.IsMatch(Path.GetFileName(file))) 95 102 {
Note:
See TracChangeset
for help on using the changeset viewer.