aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGanesh Viswanathan <dev@genotrance.com>2020-06-23 09:50:00 -0500
committerGanesh Viswanathan <dev@genotrance.com>2020-06-23 09:50:00 -0500
commit30def3f502fc0af8bbe9b08726f82da0d3ef2d89 (patch)
tree1fbc0bf80208a814a10338a9e902f4056da7593a
parentdc9d645261021e340e58a6b1d65660f3643e41bb (diff)
downloadnimterop-conan.tar.gz
nimterop-conan.zip
Fix findFile with regexconan
-rw-r--r--nimterop/build/shell.nim3
1 files changed, 2 insertions, 1 deletions
diff --git a/nimterop/build/shell.nim b/nimterop/build/shell.nim
index 235f7b5..5179798 100644
--- a/nimterop/build/shell.nim
+++ b/nimterop/build/shell.nim
@@ -393,7 +393,8 @@ proc findFiles*(file: string, dir: string, recurse = true, regex = false): seq[s
var
dir = dir
file = file
- if not recurse:
+ # If file = `path/file`, adjust dir = `dir/path` and search for new file
+ if not (recurse or regex):
let
pdir = file.parentDir()
if pdir.len != 0: