File: file.rst

package info (click to toggle)
xrootd 5.9.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 25,956 kB
  • sloc: cpp: 244,425; sh: 2,691; python: 1,980; ansic: 1,027; perl: 814; makefile: 272
file content (41 lines) | stat: -rw-r--r-- 1,385 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
================================================
:mod:`XRootD.client.File`: File-based operations
================================================

.. module:: XRootD.client
   :noindex:

.. autoclass:: 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
*******

.. automethod:: XRootD.client.File.open
.. automethod:: XRootD.client.File.close
.. automethod:: XRootD.client.File.stat
.. automethod:: XRootD.client.File.read
.. automethod:: XRootD.client.File.readline
.. automethod:: XRootD.client.File.readlines
.. automethod:: XRootD.client.File.readchunks
.. automethod:: XRootD.client.File.write
.. automethod:: XRootD.client.File.sync
.. automethod:: XRootD.client.File.truncate
.. automethod:: XRootD.client.File.vector_read
.. automethod:: XRootD.client.File.is_open
.. automethod:: XRootD.client.File.set_property
.. automethod:: XRootD.client.File.get_property