mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
I got my eyes on this one since it was using a deprecated method, BUT it was also doing the thing, since File.getName() is the same as File.getAbsolutePath(), and that doesn't match the description :\
13 lines
197 B
Plaintext
13 lines
197 B
Plaintext
/**
|
|
* @id py/examples/filename
|
|
* @name File with given name
|
|
* @description Finds files called `spam.py`
|
|
* @tags file
|
|
*/
|
|
|
|
import python
|
|
|
|
from File f
|
|
where f.getShortName() = "spam.py"
|
|
select f
|