| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent d39bd53 commit 0420b01
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -373,8 +373,8 @@ def raise_exc(e): | |||
| 373 | 373 | continue | |
| 374 | 374 | # end check symlink | |
| 375 | 375 | ||
| 376 | - # resolve globs if possible | ||
| 377 | - if '?' in path or '*' in path or '[' in path: | ||
| 376 | + # if the path is not already pointing to an existing file, resolve globs if possible | ||
| 377 | + if not os.path.exists(path) and ('?' in path or '*' in path or '[' in path): | ||
| 378 | 378 | resolved_paths = glob.glob(abs_path) | |
| 379 | 379 | # not abs_path in resolved_paths: | |
| 380 | 380 | # a glob() resolving to the same path we are feeding it with | |
| Back | FazBrowse Home | New Git URL |
0 commit comments