Skip to main content

Changing the active file

To change the active file, you can use the switch_to_file method:

File.switch_to_file(filename, filetype=None)
# You can also call Node.switch_to_file for initialized Nodes.

If the filetype parameter is set to None, then the filetype will be inferred.

This method will not reload the data from the file.

To reload the data from the new file, see Reloading/retrieving the data from the file.