Skip to content

Latest commit

 

History

History
41 lines (33 loc) · 1.35 KB

File metadata and controls

41 lines (33 loc) · 1.35 KB

XRootD.client.File: File-based operations

XRootD.client

XRootD.client.File

Similarities with Python built-in file object

To provide an interface like the python built-in file object, the __iter__(), next(), readline() and readlines() methods have been implemented. These look for newlines in files, which may not always be appropriate, especially for binary data.

Additionally, these methods can't be called asynchronously, and they don't return an XRootDStatus object like the others. You only get the data that was read.

Class Reference

Methods

XRootD.client.File.open

XRootD.client.File.close

XRootD.client.File.stat

XRootD.client.File.read

XRootD.client.File.readline

XRootD.client.File.readlines

XRootD.client.File.readchunks

XRootD.client.File.write

XRootD.client.File.sync

XRootD.client.File.truncate

XRootD.client.File.vector_read

XRootD.client.File.is_open

XRootD.client.File.set_property

XRootD.client.File.get_property