Skip to content

Commit eda6b83

Browse files
authored
Fix query to check file extension instead of name
1 parent e50057f commit eda6b83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ The following query will allow you to find files by name (case insensitive)
137137

138138
```cypher
139139
MATCH p=(h:NetworkShareHost)-[:HasNetworkShare]->(s:NetworkShareSMB)-[:Contains*0..]->(f:File)
140-
WHERE toLower(f.name) ENDS WITH ".bat"
140+
WHERE toLower(f.extension) = toLower(".bat")
141141
RETURN p
142142
```
143143

0 commit comments

Comments
 (0)