From fbd88477b89c4a937cd6fa4748b670319cb7c83c Mon Sep 17 00:00:00 2001 From: Timothee Cour Date: Mon, 11 May 2015 21:28:09 -0700 Subject: [PATCH] fix https://github.com/Hackerpilot/Dscanner/issues/251 --- src/main.d | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main.d b/src/main.d index d275baf..36a3fd7 100644 --- a/src/main.d +++ b/src/main.d @@ -278,11 +278,13 @@ int run(string[] args) string[] expandArgs(string[] args) { // isFile can throw if it's a broken symlink. - bool isFileSafe(T)(T a){ + bool isFileSafe(T)(T a) + { try{ return isFile(a); } - catch{ + catch(FileException) + { return false; } }