Ignore:
Timestamp:
Mar 26, 2013, 11:39:19 AM (12 years ago)
Author:
s10k
Message:

0.8a

File:
1 edited

Legend:

Unmodified
Added
Removed
  • xmlTools/trunk/posUpdate/Util.cs

    r742 r743  
    8787        {
    8888            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
    9097
    9198            foreach (String file in files)
    9299            {
    93                 Regex wildcardRegex = new Regex(Util.WildcardToRegex(filewildcard), RegexOptions.IgnoreCase); //case insensitivity
     100                Regex wildcardRegex = new Regex(Util.WildcardToRegex(wildcard), RegexOptions.IgnoreCase); //case insensitivity
    94101                if (wildcardRegex.IsMatch(Path.GetFileName(file)))
    95102                {
Note: See TracChangeset for help on using the changeset viewer.