CodeQL library for Python
codeql/python-all 0.11.15-dev (changelog, source)
Search

Module Files

Provides classes for working with files and folders.

Import path

import semmle.python.Files

Imports

Classes

Container

A container is an abstract representation of a file system object that can hold elements of interest.

EncodingError

An encoding error. Note that if there is an encoding error in a module, much information about that module will be lost

File

A file

Folder

A folder (directory)

Line

A non-empty line in the source code

Location
SyntaxError

A syntax error. Note that if there is a syntax error in a module, much information about that module will be lost