\pythondoc TDirectoryFile In the same way as for TDirectory, it is possible to inspect the content of a TDirectoryFile object from Python as if the subdirectories and objects it contains were its attributes. For more information, please refer to the TDirectory documentation. In addition to the attribute syntax, one can inspect a TDirectoryFile in Python via the `Get` method. In this case, the subdirectory/object name is specified as a string: \code{.py} # Access a subdirectory d.Get('subdir') # We can go further down in the hierarchy of directories d.Get('subdir/subsubdir') # Access an object (e.g. a histogram) in the directory d.Get('obj') # ... or in a subdirectory d.Get('subdir/obj') # Wrong attribute: returns null x = d.Get('wrongAttr') # x points to null \endcode Furthermore, TDirectoryFile inherits a `WriteObject` Python method from TDirectory. Such method allows to write an object into a TDirectoryFile with the following syntax: \code{.py} # Write object obj with identifier 'keyName' d.WriteObject(obj, 'keyName') \endcode \endpythondoc