private File[] getFiles(String path) throws FileNotFoundException {
        File file = Enigma.resolvePath(path);
        if (file != null && file.exists()) {
            if (file.isDirectory())
                return file.listFiles(); // path was single directory
            else
                return new File[] { file }; // path was single file
        }   
        
        // otherwise, look for wildcard path
        File[] result = Enigma.expandWildcards(path);
        if (result == null || result.length == 0)
            throw new FileNotFoundException(path);
        return result;
   }