98.6 KB
/srv/reproducible-results/rbuild-debian/r-b-build.eczBWbOj/b1/xrootd_5.0.3-4_amd64.changes vs.
/srv/reproducible-results/rbuild-debian/r-b-build.eczBWbOj/b2/xrootd_5.0.3-4_amd64.changes
1.49 KB
Files
    
Offset 29, 15 lines modifiedOffset 29, 15 lines modified
29 ·693e4e7d6b1b15ff9126b2f5a1f3f56b·44596·libdevel·optional·libxrootd-server-dev_5.0.3-4_amd64.deb29 ·693e4e7d6b1b15ff9126b2f5a1f3f56b·44596·libdevel·optional·libxrootd-server-dev_5.0.3-4_amd64.deb
30 ·0264fc38ef1c73fa379c4d1d7a8ded10·1130564·debug·optional·python3-xrootd-dbgsym_5.0.3-4_amd64.deb30 ·0264fc38ef1c73fa379c4d1d7a8ded10·1130564·debug·optional·python3-xrootd-dbgsym_5.0.3-4_amd64.deb
31 ·7e6d1294c942e3e3360579301a86e749·83580·python·optional·python3-xrootd_5.0.3-4_amd64.deb31 ·7e6d1294c942e3e3360579301a86e749·83580·python·optional·python3-xrootd_5.0.3-4_amd64.deb
32 ·29948252d0c69180dd427d403c7ec9e2·1174332·debug·optional·xrootd-client-dbgsym_5.0.3-4_amd64.deb32 ·29948252d0c69180dd427d403c7ec9e2·1174332·debug·optional·xrootd-client-dbgsym_5.0.3-4_amd64.deb
33 ·1330ff7d64df1b521adaf33e8400f879·178916·debug·optional·xrootd-client-plugins-dbgsym_5.0.3-4_amd64.deb33 ·1330ff7d64df1b521adaf33e8400f879·178916·debug·optional·xrootd-client-plugins-dbgsym_5.0.3-4_amd64.deb
34 ·a791da0308a0a82695cab6eb9df1dec5·16228·libs·optional·xrootd-client-plugins_5.0.3-4_amd64.deb34 ·a791da0308a0a82695cab6eb9df1dec5·16228·libs·optional·xrootd-client-plugins_5.0.3-4_amd64.deb
35 ·14cefde5648d428aae4785de98e5140c·113444·net·optional·xrootd-client_5.0.3-4_amd64.deb35 ·14cefde5648d428aae4785de98e5140c·113444·net·optional·xrootd-client_5.0.3-4_amd64.deb
36 ·d8b0f1dd845df451ae6d03416d5a90cc·74271448·doc·optional·xrootd-doc_5.0.3-4_all.deb36 ·97df6d61c10e7764057beddd2f9b56c6·74271468·doc·optional·xrootd-doc_5.0.3-4_all.deb
37 ·88441cba7ba08dfaa47f175124e7825c·33664·debug·optional·xrootd-fuse-dbgsym_5.0.3-4_amd64.deb37 ·88441cba7ba08dfaa47f175124e7825c·33664·debug·optional·xrootd-fuse-dbgsym_5.0.3-4_amd64.deb
38 ·722a4299d46fa1a8419ee0f468d774b1·16608·net·optional·xrootd-fuse_5.0.3-4_amd64.deb38 ·722a4299d46fa1a8419ee0f468d774b1·16608·net·optional·xrootd-fuse_5.0.3-4_amd64.deb
39 ·ab995a3a391c8199933e345795881897·907052·debug·optional·xrootd-plugins-dbgsym_5.0.3-4_amd64.deb39 ·ab995a3a391c8199933e345795881897·907052·debug·optional·xrootd-plugins-dbgsym_5.0.3-4_amd64.deb
40 ·f20c195c7c80d7266371fabe99f17505·217072·libs·optional·xrootd-plugins_5.0.3-4_amd64.deb40 ·f20c195c7c80d7266371fabe99f17505·217072·libs·optional·xrootd-plugins_5.0.3-4_amd64.deb
41 ·12c2146261435dfb2348fa3f1cb28630·1447908·debug·optional·xrootd-server-dbgsym_5.0.3-4_amd64.deb41 ·12c2146261435dfb2348fa3f1cb28630·1447908·debug·optional·xrootd-server-dbgsym_5.0.3-4_amd64.deb
42 ·94a38917fcf47089b97934846dd62432·2425108·debug·optional·xrootd-server-plugins-dbgsym_5.0.3-4_amd64.deb42 ·94a38917fcf47089b97934846dd62432·2425108·debug·optional·xrootd-server-plugins-dbgsym_5.0.3-4_amd64.deb
43 ·efc22e14fab0fa2363774126a3a7f28e·240860·libs·optional·xrootd-server-plugins_5.0.3-4_amd64.deb43 ·efc22e14fab0fa2363774126a3a7f28e·240860·libs·optional·xrootd-server-plugins_5.0.3-4_amd64.deb
96.9 KB
xrootd-doc_5.0.3-4_all.deb
367 B
file list
    
Offset 1, 3 lines modifiedOffset 1, 3 lines modified
1 -rw-r--r--···0········0········0········4·2020-12-19·18:58:41.000000·debian-binary1 -rw-r--r--···0········0········0········4·2020-12-19·18:58:41.000000·debian-binary
2 -rw-r--r--···0········0········0···246624·2020-12-19·18:58:41.000000·control.tar.xz2 -rw-r--r--···0········0········0···246624·2020-12-19·18:58:41.000000·control.tar.xz
3 -rw-r--r--···0········0········0·74024632·2020-12-19·18:58:41.000000·data.tar.xz3 -rw-r--r--···0········0········0·74024652·2020-12-19·18:58:41.000000·data.tar.xz
536 B
control.tar.xz
508 B
control.tar
438 B
./control
    
Offset 1, 13 lines modifiedOffset 1, 13 lines modified
1 Package:·xrootd-doc1 Package:·xrootd-doc
2 Source:·xrootd2 Source:·xrootd
3 Version:·5.0.3-43 Version:·5.0.3-4
4 Architecture:·all4 Architecture:·all
5 Maintainer:·Mattias·Ellert·<mattias.ellert@physics.uu.se>5 Maintainer:·Mattias·Ellert·<mattias.ellert@physics.uu.se>
6 Installed-Size:·1685706 Installed-Size:·168571
7 Depends:·libjs-sphinxdoc·(>=·2.4.3-5~)7 Depends:·libjs-sphinxdoc·(>=·2.4.3-5~)
8 Built-Using:·sphinx·(=·3.4.3-2)8 Built-Using:·sphinx·(=·3.4.3-2)
9 Section:·doc9 Section:·doc
10 Priority:·optional10 Priority:·optional
11 Multi-Arch:·foreign11 Multi-Arch:·foreign
12 Homepage:·http://xrootd.org/12 Homepage:·http://xrootd.org/
13 Description:·Developer·documentation·for·the·xrootd·libraries13 Description:·Developer·documentation·for·the·xrootd·libraries
48.0 B
./md5sums
30.0 B
./md5sums
Files differ
96.0 KB
data.tar.xz
96.0 KB
data.tar
5.93 KB
file list
    
Offset 12257, 35 lines modifiedOffset 12257, 35 lines modified
12257 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-12-19·18:58:41.000000·./usr/share/doc/xrootd/python/_static/img/12257 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-12-19·18:58:41.000000·./usr/share/doc/xrootd/python/_static/img/
12258 -rw-r--r--···0·root·········(0)·root·········(0)·····2936·2020-11-10·08:42:04.000000·./usr/share/doc/xrootd/python/_static/img/favicon.ico.gz12258 -rw-r--r--···0·root·········(0)·root·········(0)·····2936·2020-11-10·08:42:04.000000·./usr/share/doc/xrootd/python/_static/img/favicon.ico.gz
12259 -rw-r--r--···0·root·········(0)·root·········(0)····14979·2020-12-19·18:58:41.000000·./usr/share/doc/xrootd/python/_static/img/xrootd-200x68.png12259 -rw-r--r--···0·root·········(0)·root·········(0)····14979·2020-12-19·18:58:41.000000·./usr/share/doc/xrootd/python/_static/img/xrootd-200x68.png
12260 -rw-r--r--···0·root·········(0)·root·········(0)·······90·2020-12-19·18:58:41.000000·./usr/share/doc/xrootd/python/_static/minus.png12260 -rw-r--r--···0·root·········(0)·root·········(0)·······90·2020-12-19·18:58:41.000000·./usr/share/doc/xrootd/python/_static/minus.png
12261 -rw-r--r--···0·root·········(0)·root·········(0)·······90·2020-12-19·18:58:41.000000·./usr/share/doc/xrootd/python/_static/plus.png12261 -rw-r--r--···0·root·········(0)·root·········(0)·······90·2020-12-19·18:58:41.000000·./usr/share/doc/xrootd/python/_static/plus.png
12262 -rw-r--r--···0·root·········(0)·root·········(0)·····4780·2020-12-19·18:58:41.000000·./usr/share/doc/xrootd/python/_static/pygments.css12262 -rw-r--r--···0·root·········(0)·root·········(0)·····4780·2020-12-19·18:58:41.000000·./usr/share/doc/xrootd/python/_static/pygments.css
12263 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-12-19·18:58:41.000000·./usr/share/doc/xrootd/python/examples/12263 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-12-19·18:58:41.000000·./usr/share/doc/xrootd/python/examples/
12264 -rw-r--r--···0·root·········(0)·root·········(0)····15210·2020-12-19·18:58:41.000000·./usr/share/doc/xrootd/python/examples/copyprocess.html12264 -rw-r--r--···0·root·········(0)·root·········(0)····15310·2020-12-19·18:58:41.000000·./usr/share/doc/xrootd/python/examples/copyprocess.html
12265 -rw-r--r--···0·root·········(0)·root·········(0)····20282·2020-12-19·18:58:41.000000·./usr/share/doc/xrootd/python/examples/file.html12265 -rw-r--r--···0·root·········(0)·root·········(0)····20410·2020-12-19·18:58:41.000000·./usr/share/doc/xrootd/python/examples/file.html
12266 -rw-r--r--···0·root·········(0)·root·········(0)····17602·2020-12-19·18:58:41.000000·./usr/share/doc/xrootd/python/examples/filesystem.html12266 -rw-r--r--···0·root·········(0)·root·········(0)····17778·2020-12-19·18:58:41.000000·./usr/share/doc/xrootd/python/examples/filesystem.html
12267 -rw-r--r--···0·root·········(0)·root·········(0)·····7946·2020-12-19·18:58:41.000000·./usr/share/doc/xrootd/python/examples.html12267 -rw-r--r--···0·root·········(0)·root·········(0)·····8110·2020-12-19·18:58:41.000000·./usr/share/doc/xrootd/python/examples.html
12268 -rw-r--r--···0·root·········(0)·root·········(0)····19786·2020-12-19·18:58:41.000000·./usr/share/doc/xrootd/python/genindex.html12268 -rw-r--r--···0·root·········(0)·root·········(0)····19786·2020-12-19·18:58:41.000000·./usr/share/doc/xrootd/python/genindex.html
12269 -rw-r--r--···0·root·········(0)·root·········(0)····14294·2020-12-19·18:58:41.000000·./usr/share/doc/xrootd/python/gettingstarted.html12269 -rw-r--r--···0·root·········(0)·root·········(0)····14342·2020-12-19·18:58:41.000000·./usr/share/doc/xrootd/python/gettingstarted.html
12270 -rw-r--r--···0·root·········(0)·root·········(0)·····8910·2020-12-19·18:58:41.000000·./usr/share/doc/xrootd/python/index.html12270 -rw-r--r--···0·root·········(0)·root·········(0)·····8919·2020-12-19·18:58:41.000000·./usr/share/doc/xrootd/python/index.html
12271 -rw-r--r--···0·root·········(0)·root·········(0)·····5626·2020-12-19·18:58:41.000000·./usr/share/doc/xrootd/python/install.html12271 -rw-r--r--···0·root·········(0)·root·········(0)·····5626·2020-12-19·18:58:41.000000·./usr/share/doc/xrootd/python/install.html
12272 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-12-19·18:58:41.000000·./usr/share/doc/xrootd/python/modules/12272 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-12-19·18:58:41.000000·./usr/share/doc/xrootd/python/modules/
12273 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-12-19·18:58:41.000000·./usr/share/doc/xrootd/python/modules/client/12273 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-12-19·18:58:41.000000·./usr/share/doc/xrootd/python/modules/client/
12274 -rw-r--r--···0·root·········(0)·root·········(0)····14047·2020-12-19·18:58:41.000000·./usr/share/doc/xrootd/python/modules/client/copyprocess.html12274 -rw-r--r--···0·root·········(0)·root·········(0)····14047·2020-12-19·18:58:41.000000·./usr/share/doc/xrootd/python/modules/client/copyprocess.html
12275 -rw-r--r--···0·root·········(0)·root·········(0)····30076·2020-12-19·18:58:41.000000·./usr/share/doc/xrootd/python/modules/client/file.html12275 -rw-r--r--···0·root·········(0)·root·········(0)····30076·2020-12-19·18:58:41.000000·./usr/share/doc/xrootd/python/modules/client/file.html
12276 -rw-r--r--···0·root·········(0)·root·········(0)····41315·2020-12-19·18:58:41.000000·./usr/share/doc/xrootd/python/modules/client/filesystem.html12276 -rw-r--r--···0·root·········(0)·root·········(0)····41323·2020-12-19·18:58:41.000000·./usr/share/doc/xrootd/python/modules/client/filesystem.html
12277 -rw-r--r--···0·root·········(0)·root·········(0)····20607·2020-12-19·18:58:41.000000·./usr/share/doc/xrootd/python/modules/client/flags.html12277 -rw-r--r--···0·root·········(0)·root·········(0)····20607·2020-12-19·18:58:41.000000·./usr/share/doc/xrootd/python/modules/client/flags.html
12278 -rw-r--r--···0·root·········(0)·root·········(0)····26805·2020-12-19·18:58:41.000000·./usr/share/doc/xrootd/python/modules/client/responses.html12278 -rw-r--r--···0·root·········(0)·root·········(0)····26805·2020-12-19·18:58:41.000000·./usr/share/doc/xrootd/python/modules/client/responses.html
12279 -rw-r--r--···0·root·········(0)·root·········(0)····10113·2020-12-19·18:58:41.000000·./usr/share/doc/xrootd/python/modules/client/url.html12279 -rw-r--r--···0·root·········(0)·root·········(0)····10113·2020-12-19·18:58:41.000000·./usr/share/doc/xrootd/python/modules/client/url.html
12280 -rw-r--r--···0·root·········(0)·root·········(0)····11768·2020-12-19·18:58:41.000000·./usr/share/doc/xrootd/python/modules/client/utils.html12280 -rw-r--r--···0·root·········(0)·root·········(0)····11768·2020-12-19·18:58:41.000000·./usr/share/doc/xrootd/python/modules/client/utils.html
12281 -rw-r--r--···0·root·········(0)·root·········(0)·····1096·2020-12-19·18:58:41.000000·./usr/share/doc/xrootd/python/objects.inv12281 -rw-r--r--···0·root·········(0)·root·········(0)·····1096·2020-12-19·18:58:41.000000·./usr/share/doc/xrootd/python/objects.inv
12282 -rw-r--r--···0·root·········(0)·root·········(0)·····4667·2020-12-19·18:58:41.000000·./usr/share/doc/xrootd/python/py-modindex.html12282 -rw-r--r--···0·root·········(0)·root·········(0)·····4667·2020-12-19·18:58:41.000000·./usr/share/doc/xrootd/python/py-modindex.html
12283 -rw-r--r--···0·root·········(0)·root·········(0)·····3576·2020-12-19·18:58:41.000000·./usr/share/doc/xrootd/python/search.html12283 -rw-r--r--···0·root·········(0)·root·········(0)·····3576·2020-12-19·18:58:41.000000·./usr/share/doc/xrootd/python/search.html
12284 -rw-r--r--···0·root·········(0)·root·········(0)····14101·2020-12-19·18:58:41.000000·./usr/share/doc/xrootd/python/searchindex.js12284 -rw-r--r--···0·root·········(0)·root·········(0)····14148·2020-12-19·18:58:41.000000·./usr/share/doc/xrootd/python/searchindex.js
12285 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-12-19·18:58:41.000000·./usr/share/doc/xrootd-doc/12285 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-12-19·18:58:41.000000·./usr/share/doc/xrootd-doc/
12286 -rw-r--r--···0·root·········(0)·root·········(0)······345·2020-12-19·18:58:41.000000·./usr/share/doc/xrootd-doc/changelog.Debian.gz12286 -rw-r--r--···0·root·········(0)·root·········(0)······345·2020-12-19·18:58:41.000000·./usr/share/doc/xrootd-doc/changelog.Debian.gz
12287 -rw-r--r--···0·root·········(0)·root·········(0)·····8939·2020-11-16·09:50:38.000000·./usr/share/doc/xrootd-doc/copyright12287 -rw-r--r--···0·root·········(0)·root·········(0)·····8939·2020-11-16·09:50:38.000000·./usr/share/doc/xrootd-doc/copyright
12288 lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2020-12-19·18:58:41.000000·./usr/share/doc/xrootd/python/_static/doctools.js·->·../../../../javascript/sphinxdoc/1.0/doctools.js12288 lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2020-12-19·18:58:41.000000·./usr/share/doc/xrootd/python/_static/doctools.js·->·../../../../javascript/sphinxdoc/1.0/doctools.js
12289 lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2020-12-19·18:58:41.000000·./usr/share/doc/xrootd/python/_static/jquery.js·->·../../../../javascript/sphinxdoc/1.0/jquery.js12289 lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2020-12-19·18:58:41.000000·./usr/share/doc/xrootd/python/_static/jquery.js·->·../../../../javascript/sphinxdoc/1.0/jquery.js
12290 lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2020-12-19·18:58:41.000000·./usr/share/doc/xrootd/python/_static/language_data.js·->·../../../../javascript/sphinxdoc/1.0/language_data.js12290 lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2020-12-19·18:58:41.000000·./usr/share/doc/xrootd/python/_static/language_data.js·->·../../../../javascript/sphinxdoc/1.0/language_data.js
12291 lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2020-12-19·18:58:41.000000·./usr/share/doc/xrootd/python/_static/searchtools.js·->·../../../../javascript/sphinxdoc/1.0/searchtools.js12291 lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2020-12-19·18:58:41.000000·./usr/share/doc/xrootd/python/_static/searchtools.js·->·../../../../javascript/sphinxdoc/1.0/searchtools.js
10.9 KB
./usr/share/doc/xrootd/python/examples/copyprocess.html
    
Offset 1, 58 lines modifiedOffset 1, 58 lines modified
  
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html>2 <html>
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>3.·CopyProcess·examples·&#8212;·pyxrootd·current·documentation</title>6 ····<title>3.3.·CopyProcess·examples·&#8212;·pyxrootd·current·documentation</title>
7 ····<link·rel="stylesheet"·href="../_static/pygments.css"·type="text/css"·/>7 ····<link·rel="stylesheet"·href="../_static/pygments.css"·type="text/css"·/>
8 ····<link·rel="stylesheet"·href="../_static/basic.css"·type="text/css"·/>8 ····<link·rel="stylesheet"·href="../_static/basic.css"·type="text/css"·/>
9 ····<link·rel="stylesheet"·href="../_static/css/custom.css"·type="text/css"·/>9 ····<link·rel="stylesheet"·href="../_static/css/custom.css"·type="text/css"·/>
10 ····<script·id="documentation_options"·data-url_root="../"·src="../_static/documentation_options.js"></script>10 ····<script·id="documentation_options"·data-url_root="../"·src="../_static/documentation_options.js"></script>
11 ····<script·src="../_static/jquery.js"></script>11 ····<script·src="../_static/jquery.js"></script>
12 ····<script·src="../_static/underscore.js"></script>12 ····<script·src="../_static/underscore.js"></script>
13 ····<script·src="../_static/doctools.js"></script>13 ····<script·src="../_static/doctools.js"></script>
14 ····<link·rel="shortcut·icon"·href="../_static/img/favicon.ico?v=2"/>14 ····<link·rel="shortcut·icon"·href="../_static/img/favicon.ico?v=2"/>
15 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>15 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>
16 ····<link·rel="search"·title="Search"·href="../search.html"·/>16 ····<link·rel="search"·title="Search"·href="../search.html"·/>
17 ····<link·rel="next"·title="1.·XRootD.client.FileSystem:·Filesystem-based·operations"·href="../modules/client/filesystem.html"·/>17 ····<link·rel="next"·title="1.·XRootD.client.FileSystem:·Filesystem-based·operations"·href="../modules/client/filesystem.html"·/>
18 ····<link·rel="prev"·title="2.·File·examples"·href="file.html"·/>·18 ····<link·rel="prev"·title="3.2.·File·examples"·href="file.html"·/>·
19 ··</head><body>19 ··</head><body>
20 ····<div·class="related"·role="navigation"·aria-label="related·navigation">20 ····<div·class="related"·role="navigation"·aria-label="related·navigation">
21 ······<h3>Navigation</h3>21 ······<h3>Navigation</h3>
22 ······<ul>22 ······<ul>
23 ········<li·class="right"·style="margin-right:·10px">23 ········<li·class="right"·style="margin-right:·10px">
24 ··········<a·href="../genindex.html"·title="General·Index"24 ··········<a·href="../genindex.html"·title="General·Index"
25 ·············accesskey="I">index</a></li>25 ·············accesskey="I">index</a></li>
26 ········<li·class="right"·>26 ········<li·class="right"·>
27 ··········<a·href="../py-modindex.html"·title="Python·Module·Index"27 ··········<a·href="../py-modindex.html"·title="Python·Module·Index"
28 ·············>modules</a>·|</li>28 ·············>modules</a>·|</li>
29 ········<li·class="right"·>29 ········<li·class="right"·>
30 ··········<a·href="../modules/client/filesystem.html"·title="1.·XRootD.client.FileSystem:·Filesystem-based·operations"30 ··········<a·href="../modules/client/filesystem.html"·title="1.·XRootD.client.FileSystem:·Filesystem-based·operations"
31 ·············accesskey="N">next</a>·|</li>31 ·············accesskey="N">next</a>·|</li>
32 ········<li·class="right"·>32 ········<li·class="right"·>
33 ··········<a·href="file.html"·title="2.·File·examples"33 ··········<a·href="file.html"·title="3.2.·File·examples"
34 ·············accesskey="P">previous</a>·|</li>34 ·············accesskey="P">previous</a>·|</li>
35 ········<li·class="nav-item·nav-item-0"><a·href="../index.html">pyxrootd·current·documentation</a>·&#187;</li>35 ········<li·class="nav-item·nav-item-0"><a·href="../index.html">pyxrootd·current·documentation</a>·&#187;</li>
36 ··········<li·class="nav-item·nav-item-1"><a·href="../examples.html"·accesskey="U"><strong>Examples</strong></a>·&#187;</li>36 ··········<li·class="nav-item·nav-item-1"><a·href="../examples.html"·accesskey="U"><span·class="section-number">3.·</span><strong>Examples</strong></a>·&#187;</li>
37 ········<li·class="nav-item·nav-item-this"><a·href=""><span·class="section-number">3.·</span><code·class="docutils·literal·notranslate"><span·class="pre">CopyProcess</span></code>·examples</a></li>·37 ········<li·class="nav-item·nav-item-this"><a·href=""><span·class="section-number">3.3.·</span><code·class="docutils·literal·notranslate"><span·class="pre">CopyProcess</span></code>·examples</a></li>·
38 ······</ul>38 ······</ul>
39 ····</div>··39 ····</div>··
  
40 ····<div·class="document">40 ····<div·class="document">
41 ······<div·class="documentwrapper">41 ······<div·class="documentwrapper">
42 ········<div·class="bodywrapper">42 ········<div·class="bodywrapper">
43 ··········<div·class="body"·role="main">43 ··········<div·class="body"·role="main">
44 ············44 ············
45 ··<div·class="section"·id="copyprocess-examples">45 ··<div·class="section"·id="copyprocess-examples">
46 <h1><span·class="section-number">3.·</span><code·class="docutils·literal·notranslate"><span·class="pre">CopyProcess</span></code>·examples<a·class="headerlink"·href="#copyprocess-examples"·title="Permalink·to·this·headline">¶</a></h1>46 <h1><span·class="section-number">3.3.·</span><code·class="docutils·literal·notranslate"><span·class="pre">CopyProcess</span></code>·examples<a·class="headerlink"·href="#copyprocess-examples"·title="Permalink·to·this·headline">¶</a></h1>
47 <div·class="section"·id="add-a-number-of-copy-jobs-and-run-them-in-parallel-with-a-progress-handler">47 <div·class="section"·id="add-a-number-of-copy-jobs-and-run-them-in-parallel-with-a-progress-handler">
48 <h2><span·class="section-number">3.1.·</span>Add·a·number·of·copy·jobs·and·run·them·in·parallel·with·a·progress·handler<a·class="headerlink"·href="#add-a-number-of-copy-jobs-and-run-them-in-parallel-with-a-progress-handler"·title="Permalink·to·this·headline">¶</a></h2>48 <h2><span·class="section-number">3.3.1.·</span>Add·a·number·of·copy·jobs·and·run·them·in·parallel·with·a·progress·handler<a·class="headerlink"·href="#add-a-number-of-copy-jobs-and-run-them-in-parallel-with-a-progress-handler"·title="Permalink·to·this·headline">¶</a></h2>
49 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">from</span>·<span·class="nn">XRootD</span>·<span·class="kn">import</span>·<span·class="n">client</span>49 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">from</span>·<span·class="nn">XRootD</span>·<span·class="kn">import</span>·<span·class="n">client</span>
  
50 <span·class="k">class</span>·<span·class="nc">MyCopyProgressHandler</span><span·class="p">(</span><span·class="n">client</span><span·class="o">.</span><span·class="n">utils</span><span·class="o">.</span><span·class="n">CopyProgressHandler</span><span·class="p">):</span>50 <span·class="k">class</span>·<span·class="nc">MyCopyProgressHandler</span><span·class="p">(</span><span·class="n">client</span><span·class="o">.</span><span·class="n">utils</span><span·class="o">.</span><span·class="n">CopyProgressHandler</span><span·class="p">):</span>
51 ··<span·class="k">def</span>·<span·class="nf">begin</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">jobId</span><span·class="p">,</span>·<span·class="n">total</span><span·class="p">,</span>·<span·class="n">source</span><span·class="p">,</span>·<span·class="n">target</span><span·class="p">):</span>51 ··<span·class="k">def</span>·<span·class="nf">begin</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">jobId</span><span·class="p">,</span>·<span·class="n">total</span><span·class="p">,</span>·<span·class="n">source</span><span·class="p">,</span>·<span·class="n">target</span><span·class="p">):</span>
52 ····<span·class="nb">print</span>·<span·class="s1">&#39;id:·</span><span·class="si">%d</span><span·class="s1">,·total:·</span><span·class="si">%d</span><span·class="s1">&#39;</span>·<span·class="o">%</span>·<span·class="p">(</span><span·class="n">jobId</span><span·class="p">,</span>·<span·class="n">total</span><span·class="p">)</span>52 ····<span·class="nb">print</span>·<span·class="s1">&#39;id:·</span><span·class="si">%d</span><span·class="s1">,·total:·</span><span·class="si">%d</span><span·class="s1">&#39;</span>·<span·class="o">%</span>·<span·class="p">(</span><span·class="n">jobId</span><span·class="p">,</span>·<span·class="n">total</span><span·class="p">)</span>
53 ····<span·class="nb">print</span>·<span·class="s1">&#39;source:·</span><span·class="si">%s</span><span·class="s1">&#39;</span>·<span·class="o">%</span>·<span·class="n">source</span>53 ····<span·class="nb">print</span>·<span·class="s1">&#39;source:·</span><span·class="si">%s</span><span·class="s1">&#39;</span>·<span·class="o">%</span>·<span·class="n">source</span>
54 ····<span·class="nb">print</span>·<span·class="s1">&#39;target:·</span><span·class="si">%s</span><span·class="s1">&#39;</span>·<span·class="o">%</span>·<span·class="n">target</span>54 ····<span·class="nb">print</span>·<span·class="s1">&#39;target:·</span><span·class="si">%s</span><span·class="s1">&#39;</span>·<span·class="o">%</span>·<span·class="n">target</span>
Offset 116, 23 lines modifiedOffset 116, 23 lines modified
116 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="main·navigation">116 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="main·navigation">
117 ········<div·class="sphinxsidebarwrapper">117 ········<div·class="sphinxsidebarwrapper">
118 ············<p·class="logo"><a·href="../index.html">118 ············<p·class="logo"><a·href="../index.html">
119 ··············<img·class="logo"·src="../_static/img/xrootd-200x68.png"·alt="Logo"/>119 ··············<img·class="logo"·src="../_static/img/xrootd-200x68.png"·alt="Logo"/>
120 ············</a></p>120 ············</a></p>
121 ··<h3><a·href="../index.html">Table·of·Contents</a></h3>121 ··<h3><a·href="../index.html">Table·of·Contents</a></h3>
122 ··<ul>122 ··<ul>
123 <li><a·class="reference·internal"·href="#">3.·<code·class="docutils·literal·notranslate"><span·class="pre">CopyProcess</span></code>·examples</a><ul>123 <li><a·class="reference·internal"·href="#">3.3.·<code·class="docutils·literal·notranslate"><span·class="pre">CopyProcess</span></code>·examples</a><ul>
124 <li><a·class="reference·internal"·href="#add-a-number-of-copy-jobs-and-run-them-in-parallel-with-a-progress-handler">3.1.·Add·a·number·of·copy·jobs·and·run·them·in·parallel·with·a·progress·handler</a></li>124 <li><a·class="reference·internal"·href="#add-a-number-of-copy-jobs-and-run-them-in-parallel-with-a-progress-handler">3.3.1.·Add·a·number·of·copy·jobs·and·run·them·in·parallel·with·a·progress·handler</a></li>
125 </ul>125 </ul>
126 </li>126 </li>
127 </ul>127 </ul>
  
128 ··<h4>Previous·topic</h4>128 ··<h4>Previous·topic</h4>
129 ··<p·class="topless"><a·href="file.html"129 ··<p·class="topless"><a·href="file.html"
130 ························title="previous·chapter"><span·class="section-number">2.·</span><code·class="docutils·literal·notranslate"><span·class="pre">File</span></code>·examples</a></p>130 ························title="previous·chapter"><span·class="section-number">3.2.·</span><code·class="docutils·literal·notranslate"><span·class="pre">File</span></code>·examples</a></p>
131 ··<h4>Next·topic</h4>131 ··<h4>Next·topic</h4>
132 ··<p·class="topless"><a·href="../modules/client/filesystem.html"132 ··<p·class="topless"><a·href="../modules/client/filesystem.html"
133 ························title="next·chapter"><span·class="section-number">1.·</span><code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">XRootD.client.FileSystem</span></code>:·Filesystem-based·operations</a></p>133 ························title="next·chapter"><span·class="section-number">1.·</span><code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">XRootD.client.FileSystem</span></code>:·Filesystem-based·operations</a></p>
134 ··<div·role="note"·aria-label="source·link">134 ··<div·role="note"·aria-label="source·link">
135 ····<h3>This·Page</h3>135 ····<h3>This·Page</h3>
136 ····<ul·class="this-page-menu">136 ····<ul·class="this-page-menu">
137 ······<li><a·href="../_sources/examples/copyprocess.rst.txt"137 ······<li><a·href="../_sources/examples/copyprocess.rst.txt"
Offset 162, 19 lines modifiedOffset 162, 19 lines modified
162 ········<li·class="right"·>162 ········<li·class="right"·>
163 ··········<a·href="../py-modindex.html"·title="Python·Module·Index"163 ··········<a·href="../py-modindex.html"·title="Python·Module·Index"
164 ·············>modules</a>·|</li>164 ·············>modules</a>·|</li>
165 ········<li·class="right"·>165 ········<li·class="right"·>
166 ··········<a·href="../modules/client/filesystem.html"·title="1.·XRootD.client.FileSystem:·Filesystem-based·operations"166 ··········<a·href="../modules/client/filesystem.html"·title="1.·XRootD.client.FileSystem:·Filesystem-based·operations"
167 ·············>next</a>·|</li>167 ·············>next</a>·|</li>
168 ········<li·class="right"·>168 ········<li·class="right"·>
169 ··········<a·href="file.html"·title="2.·File·examples"169 ··········<a·href="file.html"·title="3.2.·File·examples"
170 ·············>previous</a>·|</li>170 ·············>previous</a>·|</li>
171 ········<li·class="nav-item·nav-item-0"><a·href="../index.html">pyxrootd·current·documentation</a>·&#187;</li>171 ········<li·class="nav-item·nav-item-0"><a·href="../index.html">pyxrootd·current·documentation</a>·&#187;</li>
172 ··········<li·class="nav-item·nav-item-1"><a·href="../examples.html"·><strong>Examples</strong></a>·&#187;</li>172 ··········<li·class="nav-item·nav-item-1"><a·href="../examples.html"·><span·class="section-number">3.·</span><strong>Examples</strong></a>·&#187;</li>
173 ········<li·class="nav-item·nav-item-this"><a·href=""><span·class="section-number">3.·</span><code·class="docutils·literal·notranslate"><span·class="pre">CopyProcess</span></code>·examples</a></li>·173 ········<li·class="nav-item·nav-item-this"><a·href=""><span·class="section-number">3.3.·</span><code·class="docutils·literal·notranslate"><span·class="pre">CopyProcess</span></code>·examples</a></li>·
174 ······</ul>174 ······</ul>
175 ····</div>175 ····</div>
176 ····<div·class="footer"·role="contentinfo">176 ····<div·class="footer"·role="contentinfo">
177 ········&#169;·Copyright·2020,·CERN.177 ········&#169;·Copyright·2020,·CERN.
178 ······Created·using·<a·href="https://www.sphinx-doc.org/">Sphinx</a>·3.4.3.178 ······Created·using·<a·href="https://www.sphinx-doc.org/">Sphinx</a>·3.4.3.
179 ····</div>179 ····</div>
180 ··</body>180 ··</body>
1.67 KB
html2text {}
    
Offset 9, 18 lines modifiedOffset 9, 18 lines modified
  
9 ****·Navigation·****9 ****·Navigation·****
10 ····*·index10 ····*·index
11 ····*·modules·|11 ····*·modules·|
12 ····*·next·|12 ····*·next·|
13 ····*·previous·|13 ····*·previous·|
14 ····*·pyxrootd_current_documentation·»14 ····*·pyxrootd_current_documentation·»
15 ····*·Examples·»15 ····*·3._Examples·»
16 ····*·3.·CopyProcess·examples16 ····*·3.3.·CopyProcess·examples
17 ******·3.·CopyProcess·examples¶·******17 ******·3.3.·CopyProcess·examples¶·******
18 *****·3.1.·Add·a·number·of·copy·jobs·and·run·them·in·parallel·with·a·progress18 *****·3.3.1.·Add·a·number·of·copy·jobs·and·run·them·in·parallel·with·a·progress
19 handler¶·*****19 handler¶·*****
20 from·XRootD·import·client20 from·XRootD·import·client
  
21 class·MyCopyProgressHandler(client.utils.CopyProgressHandler):21 class·MyCopyProgressHandler(client.utils.CopyProgressHandler):
22 ··def·begin(self,·jobId,·total,·source,·target):22 ··def·begin(self,·jobId,·total,·source,·target):
23 ····print·'id:·%d,·total:·%d'·%·(jobId,·total)23 ····print·'id:·%d,·total:·%d'·%·(jobId,·total)
24 ····print·'source:·%s'·%·source24 ····print·'source:·%s'·%·source
Offset 68, 27 lines modifiedOffset 68, 27 lines modified
68 id:·4,·total:·468 id:·4,·total:·4
69 source:·root://localhost//tmp/spam69 source:·root://localhost//tmp/spam
70 target:·root://localhost//tmp/spam470 target:·root://localhost//tmp/spam4
71 processed:·20,·total:·2071 processed:·20,·total:·20
72 end·status:·[SUCCESS]72 end·status:·[SUCCESS]
73 [Logo]73 [Logo]
74 ****·Table_of_Contents·****74 ****·Table_of_Contents·****
75 ····*·3._CopyProcess_examples75 ····*·3.3._CopyProcess_examples
76 ··········o·3.1._Add_a_number_of_copy_jobs_and_run_them_in_parallel_with_a76 ··········o·3.3.1._Add_a_number_of_copy_jobs_and_run_them_in_parallel_with_a
77 ············progress_handler77 ············progress_handler
78 ***·Previous·topic·***78 ***·Previous·topic·***
79 2._File_examples79 3.2._File_examples
80 ***·Next·topic·***80 ***·Next·topic·***
81 1._XRootD.client.FileSystem:_Filesystem-based_operations81 1._XRootD.client.FileSystem:_Filesystem-based_operations
82 ****·This·Page·****82 ****·This·Page·****
83 ····*·Show_Source83 ····*·Show_Source
84 ****·Quick·search·****84 ****·Quick·search·****
85 [q···················]·[Go]85 [q···················]·[Go]
86 ****·Navigation·****86 ****·Navigation·****
87 ····*·index87 ····*·index
88 ····*·modules·|88 ····*·modules·|
89 ····*·next·|89 ····*·next·|
90 ····*·previous·|90 ····*·previous·|
91 ····*·pyxrootd_current_documentation·»91 ····*·pyxrootd_current_documentation·»
92 ····*·Examples·»92 ····*·3._Examples·»
93 ····*·3.·CopyProcess·examples93 ····*·3.3.·CopyProcess·examples
94 ©·Copyright·2020,·CERN.·Created·using·Sphinx·3.4.3.94 ©·Copyright·2020,·CERN.·Created·using·Sphinx·3.4.3.
25.3 KB
./usr/share/doc/xrootd/python/examples/file.html
    
Offset 1, 69 lines modifiedOffset 1, 69 lines modified
  
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html>2 <html>
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>2.·File·examples·&#8212;·pyxrootd·current·documentation</title>6 ····<title>3.2.·File·examples·&#8212;·pyxrootd·current·documentation</title>
7 ····<link·rel="stylesheet"·href="../_static/pygments.css"·type="text/css"·/>7 ····<link·rel="stylesheet"·href="../_static/pygments.css"·type="text/css"·/>
8 ····<link·rel="stylesheet"·href="../_static/basic.css"·type="text/css"·/>8 ····<link·rel="stylesheet"·href="../_static/basic.css"·type="text/css"·/>
9 ····<link·rel="stylesheet"·href="../_static/css/custom.css"·type="text/css"·/>9 ····<link·rel="stylesheet"·href="../_static/css/custom.css"·type="text/css"·/>
10 ····<script·id="documentation_options"·data-url_root="../"·src="../_static/documentation_options.js"></script>10 ····<script·id="documentation_options"·data-url_root="../"·src="../_static/documentation_options.js"></script>
11 ····<script·src="../_static/jquery.js"></script>11 ····<script·src="../_static/jquery.js"></script>
12 ····<script·src="../_static/underscore.js"></script>12 ····<script·src="../_static/underscore.js"></script>
13 ····<script·src="../_static/doctools.js"></script>13 ····<script·src="../_static/doctools.js"></script>
14 ····<link·rel="shortcut·icon"·href="../_static/img/favicon.ico?v=2"/>14 ····<link·rel="shortcut·icon"·href="../_static/img/favicon.ico?v=2"/>
15 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>15 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>
16 ····<link·rel="search"·title="Search"·href="../search.html"·/>16 ····<link·rel="search"·title="Search"·href="../search.html"·/>
17 ····<link·rel="next"·title="3.·CopyProcess·examples"·href="copyprocess.html"·/>17 ····<link·rel="next"·title="3.3.·CopyProcess·examples"·href="copyprocess.html"·/>
18 ····<link·rel="prev"·title="1.·FileSystem·examples"·href="filesystem.html"·/>·18 ····<link·rel="prev"·title="3.1.·FileSystem·examples"·href="filesystem.html"·/>·
19 ··</head><body>19 ··</head><body>
20 ····<div·class="related"·role="navigation"·aria-label="related·navigation">20 ····<div·class="related"·role="navigation"·aria-label="related·navigation">
21 ······<h3>Navigation</h3>21 ······<h3>Navigation</h3>
22 ······<ul>22 ······<ul>
23 ········<li·class="right"·style="margin-right:·10px">23 ········<li·class="right"·style="margin-right:·10px">
24 ··········<a·href="../genindex.html"·title="General·Index"24 ··········<a·href="../genindex.html"·title="General·Index"
25 ·············accesskey="I">index</a></li>25 ·············accesskey="I">index</a></li>
26 ········<li·class="right"·>26 ········<li·class="right"·>
27 ··········<a·href="../py-modindex.html"·title="Python·Module·Index"27 ··········<a·href="../py-modindex.html"·title="Python·Module·Index"
28 ·············>modules</a>·|</li>28 ·············>modules</a>·|</li>
29 ········<li·class="right"·>29 ········<li·class="right"·>
30 ··········<a·href="copyprocess.html"·title="3.·CopyProcess·examples"30 ··········<a·href="copyprocess.html"·title="3.3.·CopyProcess·examples"
31 ·············accesskey="N">next</a>·|</li>31 ·············accesskey="N">next</a>·|</li>
32 ········<li·class="right"·>32 ········<li·class="right"·>
33 ··········<a·href="filesystem.html"·title="1.·FileSystem·examples"33 ··········<a·href="filesystem.html"·title="3.1.·FileSystem·examples"
34 ·············accesskey="P">previous</a>·|</li>34 ·············accesskey="P">previous</a>·|</li>
35 ········<li·class="nav-item·nav-item-0"><a·href="../index.html">pyxrootd·current·documentation</a>·&#187;</li>35 ········<li·class="nav-item·nav-item-0"><a·href="../index.html">pyxrootd·current·documentation</a>·&#187;</li>
36 ··········<li·class="nav-item·nav-item-1"><a·href="../examples.html"·accesskey="U"><strong>Examples</strong></a>·&#187;</li>36 ··········<li·class="nav-item·nav-item-1"><a·href="../examples.html"·accesskey="U"><span·class="section-number">3.·</span><strong>Examples</strong></a>·&#187;</li>
37 ········<li·class="nav-item·nav-item-this"><a·href=""><span·class="section-number">2.·</span><code·class="docutils·literal·notranslate"><span·class="pre">File</span></code>·examples</a></li>·37 ········<li·class="nav-item·nav-item-this"><a·href=""><span·class="section-number">3.2.·</span><code·class="docutils·literal·notranslate"><span·class="pre">File</span></code>·examples</a></li>·
38 ······</ul>38 ······</ul>
39 ····</div>··39 ····</div>··
  
40 ····<div·class="document">40 ····<div·class="document">
41 ······<div·class="documentwrapper">41 ······<div·class="documentwrapper">
42 ········<div·class="bodywrapper">42 ········<div·class="bodywrapper">
43 ··········<div·class="body"·role="main">43 ··········<div·class="body"·role="main">
44 ············44 ············
45 ··<div·class="section"·id="file-examples">45 ··<div·class="section"·id="file-examples">
46 <h1><span·class="section-number">2.·</span><code·class="docutils·literal·notranslate"><span·class="pre">File</span></code>·examples<a·class="headerlink"·href="#file-examples"·title="Permalink·to·this·headline">¶</a></h1>46 <h1><span·class="section-number">3.2.·</span><code·class="docutils·literal·notranslate"><span·class="pre">File</span></code>·examples<a·class="headerlink"·href="#file-examples"·title="Permalink·to·this·headline">¶</a></h1>
47 <p>This·page·includes·some·simple·examples·of·how·to·use·the·<code·class="docutils·literal·notranslate"><span·class="pre">pyxrootd</span></code>·<cite>File</cite>47 <p>This·page·includes·some·simple·examples·of·how·to·use·the·<code·class="docutils·literal·notranslate"><span·class="pre">pyxrootd</span></code>·<cite>File</cite>
48 object·to·manipulate·files·on·an·<code·class="docutils·literal·notranslate"><span·class="pre">xrootd</span></code>·server.</p>48 object·to·manipulate·files·on·an·<code·class="docutils·literal·notranslate"><span·class="pre">xrootd</span></code>·server.</p>
49 <p>We’ll·use·the·following·<cite>File</cite>·object·as·a·basis·for·the·rest·of·the·examples:</p>49 <p>We’ll·use·the·following·<cite>File</cite>·object·as·a·basis·for·the·rest·of·the·examples:</p>
50 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">from</span>·<span·class="nn">XRootD</span>·<span·class="kn">import</span>·<span·class="n">client</span>50 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">from</span>·<span·class="nn">XRootD</span>·<span·class="kn">import</span>·<span·class="n">client</span>
51 <span·class="kn">from</span>·<span·class="nn">XRootD.client.flags</span>·<span·class="kn">import</span>·<span·class="n">OpenFlags</span>51 <span·class="kn">from</span>·<span·class="nn">XRootD.client.flags</span>·<span·class="kn">import</span>·<span·class="n">OpenFlags</span>
  
52 <span·class="k">with</span>·<span·class="n">client</span><span·class="o">.</span><span·class="n">File</span><span·class="p">()</span>·<span·class="k">as</span>·<span·class="n">f</span><span·class="p">:</span>52 <span·class="k">with</span>·<span·class="n">client</span><span·class="o">.</span><span·class="n">File</span><span·class="p">()</span>·<span·class="k">as</span>·<span·class="n">f</span><span·class="p">:</span>
53 ··<span·class="n">f</span><span·class="o">.</span><span·class="n">open</span><span·class="p">(</span><span·class="s1">&#39;root://someserver//tmp/eggs&#39;</span><span·class="p">,</span>·<span·class="n">OpenFlags</span><span·class="o">.</span><span·class="n">UPDATE</span><span·class="p">)</span>53 ··<span·class="n">f</span><span·class="o">.</span><span·class="n">open</span><span·class="p">(</span><span·class="s1">&#39;root://someserver//tmp/eggs&#39;</span><span·class="p">,</span>·<span·class="n">OpenFlags</span><span·class="o">.</span><span·class="n">UPDATE</span><span·class="p">)</span>
54 ··<span·class="n">f</span><span·class="o">.</span><span·class="n">write</span><span·class="p">(</span><span·class="s1">&#39;green</span><span·class="se">\n</span><span·class="s1">eggs</span><span·class="se">\n</span><span·class="s1">and</span><span·class="se">\n</span><span·class="s1">ham</span><span·class="se">\n</span><span·class="s1">&#39;</span><span·class="p">)</span>54 ··<span·class="n">f</span><span·class="o">.</span><span·class="n">write</span><span·class="p">(</span><span·class="s1">&#39;green</span><span·class="se">\n</span><span·class="s1">eggs</span><span·class="se">\n</span><span·class="s1">and</span><span·class="se">\n</span><span·class="s1">ham</span><span·class="se">\n</span><span·class="s1">&#39;</span><span·class="p">)</span>
55 </pre></div>55 </pre></div>
56 </div>56 </div>
57 <div·class="section"·id="read-a-certain-amount-of-data-from-a-certain-offset-in-a-file">57 <div·class="section"·id="read-a-certain-amount-of-data-from-a-certain-offset-in-a-file">
58 <h2><span·class="section-number">2.1.·</span>Read·a·certain·amount·of·data·from·a·certain·offset·in·a·file<a·class="headerlink"·href="#read-a-certain-amount-of-data-from-a-certain-offset-in-a-file"·title="Permalink·to·this·headline">¶</a></h2>58 <h2><span·class="section-number">3.2.1.·</span>Read·a·certain·amount·of·data·from·a·certain·offset·in·a·file<a·class="headerlink"·href="#read-a-certain-amount-of-data-from-a-certain-offset-in-a-file"·title="Permalink·to·this·headline">¶</a></h2>
59 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span>59 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span>
60 ··<span·class="n">status</span><span·class="p">,</span>·<span·class="n">data</span>·<span·class="o">=</span>·<span·class="n">f</span><span·class="o">.</span><span·class="n">read</span><span·class="p">()</span>·<span·class="c1">#·Reads·the·whole·file</span>60 ··<span·class="n">status</span><span·class="p">,</span>·<span·class="n">data</span>·<span·class="o">=</span>·<span·class="n">f</span><span·class="o">.</span><span·class="n">read</span><span·class="p">()</span>·<span·class="c1">#·Reads·the·whole·file</span>
61 ··<span·class="nb">print</span>·<span·class="s1">&#39;</span><span·class="si">%r</span><span·class="s1">&#39;</span>·<span·class="o">%</span>·<span·class="n">data</span>61 ··<span·class="nb">print</span>·<span·class="s1">&#39;</span><span·class="si">%r</span><span·class="s1">&#39;</span>·<span·class="o">%</span>·<span·class="n">data</span>
62 ··<span·class="nb">print</span>·<span·class="n">f</span><span·class="o">.</span><span·class="n">get_property</span><span·class="p">(</span><span·class="s1">&#39;DataServer&#39;</span><span·class="p">)</span>62 ··<span·class="nb">print</span>·<span·class="n">f</span><span·class="o">.</span><span·class="n">get_property</span><span·class="p">(</span><span·class="s1">&#39;DataServer&#39;</span><span·class="p">)</span>
63 ··<span·class="nb">print</span>·<span·class="n">f</span><span·class="o">.</span><span·class="n">get_property</span><span·class="p">(</span><span·class="s1">&#39;LastURL&#39;</span><span·class="p">)</span>63 ··<span·class="nb">print</span>·<span·class="n">f</span><span·class="o">.</span><span·class="n">get_property</span><span·class="p">(</span><span·class="s1">&#39;LastURL&#39;</span><span·class="p">)</span>
64 ··<span·class="nb">print</span>·<span·class="n">f</span><span·class="o">.</span><span·class="n">get_property</span><span·class="p">(</span><span·class="s1">&#39;ReadRecovery&#39;</span><span·class="p">)</span>64 ··<span·class="nb">print</span>·<span·class="n">f</span><span·class="o">.</span><span·class="n">get_property</span><span·class="p">(</span><span·class="s1">&#39;ReadRecovery&#39;</span><span·class="p">)</span>
65 ··<span·class="n">f</span><span·class="o">.</span><span·class="n">set_property</span><span·class="p">(</span><span·class="s1">&#39;ReadRecovery&#39;</span><span·class="p">,</span>·<span·class="s1">&#39;false&#39;</span><span·class="p">)</span>65 ··<span·class="n">f</span><span·class="o">.</span><span·class="n">set_property</span><span·class="p">(</span><span·class="s1">&#39;ReadRecovery&#39;</span><span·class="p">,</span>·<span·class="s1">&#39;false&#39;</span><span·class="p">)</span>
Offset 76, 67 lines modifiedOffset 76, 67 lines modified
76 <p>Produces·the·following·output:</p>76 <p>Produces·the·following·output:</p>
77 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="s1">&#39;green</span><span·class="se">\n</span><span·class="s1">eggs</span><span·class="se">\n</span><span·class="s1">and</span><span·class="se">\n</span><span·class="s1">ham</span><span·class="se">\n</span><span·class="s1">&#39;</span>77 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="s1">&#39;green</span><span·class="se">\n</span><span·class="s1">eggs</span><span·class="se">\n</span><span·class="s1">and</span><span·class="se">\n</span><span·class="s1">ham</span><span·class="se">\n</span><span·class="s1">&#39;</span>
78 <span·class="s1">&#39;eggs&#39;</span>78 <span·class="s1">&#39;eggs&#39;</span>
79 </pre></div>79 </pre></div>
80 </div>80 </div>
81 </div>81 </div>
82 <div·class="section"·id="write-a-chunk-of-data-to-a-file">82 <div·class="section"·id="write-a-chunk-of-data-to-a-file">
83 <h2><span·class="section-number">2.2.·</span>Write·a·chunk·of·data·to·a·file<a·class="headerlink"·href="#write-a-chunk-of-data-to-a-file"·title="Permalink·to·this·headline">¶</a></h2>83 <h2><span·class="section-number">3.2.2.·</span>Write·a·chunk·of·data·to·a·file<a·class="headerlink"·href="#write-a-chunk-of-data-to-a-file"·title="Permalink·to·this·headline">¶</a></h2>
84 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span>··<span·class="n">data</span>·<span·class="o">=</span>·<span·class="s1">&#39;spam</span><span·class="se">\n</span><span·class="s1">&#39;</span>84 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span>··<span·class="n">data</span>·<span·class="o">=</span>·<span·class="s1">&#39;spam</span><span·class="se">\n</span><span·class="s1">&#39;</span>
85 ··<span·class="n">f</span><span·class="o">.</span><span·class="n">write</span><span·class="p">(</span><span·class="n">data</span><span·class="p">,</span>·<span·class="n">offset</span><span·class="o">=</span><span·class="mi">15</span><span·class="p">)</span>85 ··<span·class="n">f</span><span·class="o">.</span><span·class="n">write</span><span·class="p">(</span><span·class="n">data</span><span·class="p">,</span>·<span·class="n">offset</span><span·class="o">=</span><span·class="mi">15</span><span·class="p">)</span>
86 ··<span·class="nb">print</span>·<span·class="n">f</span><span·class="o">.</span><span·class="n">read</span><span·class="p">()</span>86 ··<span·class="nb">print</span>·<span·class="n">f</span><span·class="o">.</span><span·class="n">read</span><span·class="p">()</span>
87 </pre></div>87 </pre></div>
88 </div>88 </div>
89 <p>Produces·the·following·output:</p>89 <p>Produces·the·following·output:</p>
90 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="s1">&#39;green</span><span·class="se">\n</span><span·class="s1">eggs</span><span·class="se">\n</span><span·class="s1">and</span><span·class="se">\n</span><span·class="s1">spam</span><span·class="se">\n</span><span·class="s1">&#39;</span>90 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="s1">&#39;green</span><span·class="se">\n</span><span·class="s1">eggs</span><span·class="se">\n</span><span·class="s1">and</span><span·class="se">\n</span><span·class="s1">spam</span><span·class="se">\n</span><span·class="s1">&#39;</span>
91 </pre></div>91 </pre></div>
92 </div>92 </div>
93 </div>93 </div>
94 <div·class="section"·id="iterate-over-a-file-delimited-by-newline-characters">94 <div·class="section"·id="iterate-over-a-file-delimited-by-newline-characters">
95 <h2><span·class="section-number">2.3.·</span>Iterate·over·a·file,·delimited·by·newline·characters<a·class="headerlink"·href="#iterate-over-a-file-delimited-by-newline-characters"·title="Permalink·to·this·headline">¶</a></h2>95 <h2><span·class="section-number">3.2.3.·</span>Iterate·over·a·file,·delimited·by·newline·characters<a·class="headerlink"·href="#iterate-over-a-file-delimited-by-newline-characters"·title="Permalink·to·this·headline">¶</a></h2>
96 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span>··<span·class="k">for</span>·<span·class="n">line</span>·<span·class="ow">in</span>·<span·class="n">f</span><span·class="p">:</span>96 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span>··<span·class="k">for</span>·<span·class="n">line</span>·<span·class="ow">in</span>·<span·class="n">f</span><span·class="p">:</span>
97 ····<span·class="nb">print</span>·<span·class="s1">&#39;</span><span·class="si">%r</span><span·class="s1">&#39;</span>·<span·class="o">%</span>·<span·class="n">line</span>97 ····<span·class="nb">print</span>·<span·class="s1">&#39;</span><span·class="si">%r</span><span·class="s1">&#39;</span>·<span·class="o">%</span>·<span·class="n">line</span>
98 </pre></div>98 </pre></div>
99 </div>99 </div>
100 <p>Produces·the·following·output:</p>100 <p>Produces·the·following·output:</p>
101 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="s1">&#39;green</span><span·class="se">\n</span><span·class="s1">&#39;</span>101 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="s1">&#39;green</span><span·class="se">\n</span><span·class="s1">&#39;</span>
102 <span·class="s1">&#39;eggs</span><span·class="se">\n</span><span·class="s1">&#39;</span>102 <span·class="s1">&#39;eggs</span><span·class="se">\n</span><span·class="s1">&#39;</span>
103 <span·class="s1">&#39;and</span><span·class="se">\n</span><span·class="s1">&#39;</span>103 <span·class="s1">&#39;and</span><span·class="se">\n</span><span·class="s1">&#39;</span>
104 <span·class="s1">&#39;spam</span><span·class="se">\n</span><span·class="s1">&#39;</span>104 <span·class="s1">&#39;spam</span><span·class="se">\n</span><span·class="s1">&#39;</span>
105 </pre></div>105 </pre></div>
106 </div>106 </div>
107 </div>107 </div>
108 <div·class="section"·id="read-all-lines-from-a-file-into-a-list">108 <div·class="section"·id="read-all-lines-from-a-file-into-a-list">
109 <h2><span·class="section-number">2.4.·</span>Read·all·lines·from·a·file·into·a·list<a·class="headerlink"·href="#read-all-lines-from-a-file-into-a-list"·title="Permalink·to·this·headline">¶</a></h2>109 <h2><span·class="section-number">3.2.4.·</span>Read·all·lines·from·a·file·into·a·list<a·class="headerlink"·href="#read-all-lines-from-a-file-into-a-list"·title="Permalink·to·this·headline">¶</a></h2>
110 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span>··<span·class="nb">print</span>·<span·class="s1">&#39;</span><span·class="si">%r</span><span·class="s1">&#39;</span>·<span·class="o">%</span>·<span·class="n">f</span><span·class="o">.</span><span·class="n">readline</span><span·class="p">()</span>110 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span>··<span·class="nb">print</span>·<span·class="s1">&#39;</span><span·class="si">%r</span><span·class="s1">&#39;</span>·<span·class="o">%</span>·<span·class="n">f</span><span·class="o">.</span><span·class="n">readline</span><span·class="p">()</span>
111 ··<span·class="nb">print</span>·<span·class="n">f</span><span·class="o">.</span><span·class="n">readlines</span><span·class="p">()</span>111 ··<span·class="nb">print</span>·<span·class="n">f</span><span·class="o">.</span><span·class="n">readlines</span><span·class="p">()</span>
112 </pre></div>112 </pre></div>
113 </div>113 </div>
114 <p>Produces·the·following·output·(Note·how·the·first·line·is·not·returned·with·the114 <p>Produces·the·following·output·(Note·how·the·first·line·is·not·returned·with·the
115 call·to·<code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">readlines()</span></code>·because·we·ate·it·with·the·first·call·to115 call·to·<code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">readlines()</span></code>·because·we·ate·it·with·the·first·call·to
116 <code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">readline()</span></code>):</p>116 <code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">readline()</span></code>):</p>
117 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="s1">&#39;green</span><span·class="se">\n</span><span·class="s1">&#39;</span>117 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="s1">&#39;green</span><span·class="se">\n</span><span·class="s1">&#39;</span>
118 <span·class="p">[</span><span·class="s1">&#39;eggs</span><span·class="se">\n</span><span·class="s1">&#39;</span><span·class="p">,</span>·<span·class="s1">&#39;and</span><span·class="se">\n</span><span·class="s1">&#39;</span><span·class="p">,</span>·<span·class="s1">&#39;spam</span><span·class="se">\n</span><span·class="s1">&#39;</span><span·class="p">]</span>118 <span·class="p">[</span><span·class="s1">&#39;eggs</span><span·class="se">\n</span><span·class="s1">&#39;</span><span·class="p">,</span>·<span·class="s1">&#39;and</span><span·class="se">\n</span><span·class="s1">&#39;</span><span·class="p">,</span>·<span·class="s1">&#39;spam</span><span·class="se">\n</span><span·class="s1">&#39;</span><span·class="p">]</span>
119 </pre></div>119 </pre></div>
120 </div>120 </div>
121 </div>121 </div>
122 <div·class="section"·id="iterate-over-a-file-in-chunks-of-the-specified-size">122 <div·class="section"·id="iterate-over-a-file-in-chunks-of-the-specified-size">
123 <h2><span·class="section-number">2.5.·</span>Iterate·over·a·file·in·chunks·of·the·specified·size<a·class="headerlink"·href="#iterate-over-a-file-in-chunks-of-the-specified-size"·title="Permalink·to·this·headline">¶</a></h2>123 <h2><span·class="section-number">3.2.5.·</span>Iterate·over·a·file·in·chunks·of·the·specified·size<a·class="headerlink"·href="#iterate-over-a-file-in-chunks-of-the-specified-size"·title="Permalink·to·this·headline">¶</a></h2>
124 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span>··<span·class="k">for</span>·<span·class="n">chunk</span>·<span·class="ow">in</span>·<span·class="n">f</span><span·class="o">.</span><span·class="n">readchunks</span><span·class="p">(</span><span·class="n">offset</span><span·class="o">=</span><span·class="mi">0</span><span·class="p">,</span>·<span·class="n">chunksize</span><span·class="o">=</span><span·class="mi">10</span><span·class="p">):</span>124 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span>··<span·class="k">for</span>·<span·class="n">chunk</span>·<span·class="ow">in</span>·<span·class="n">f</span><span·class="o">.</span><span·class="n">readchunks</span><span·class="p">(</span><span·class="n">offset</span><span·class="o">=</span><span·class="mi">0</span><span·class="p">,</span>·<span·class="n">chunksize</span><span·class="o">=</span><span·class="mi">10</span><span·class="p">):</span>
125 ····<span·class="nb">print</span>·<span·class="s1">&#39;</span><span·class="si">%r</span><span·class="s1">&#39;</span>·<span·class="o">%</span>·<span·class="n">chunk</span>125 ····<span·class="nb">print</span>·<span·class="s1">&#39;</span><span·class="si">%r</span><span·class="s1">&#39;</span>·<span·class="o">%</span>·<span·class="n">chunk</span>
126 </pre></div>126 </pre></div>
127 </div>127 </div>
128 <p>Produces·the·following·output:</p>128 <p>Produces·the·following·output:</p>
129 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="s1">&#39;green</span><span·class="se">\n</span><span·class="s1">eggs&#39;</span>129 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="s1">&#39;green</span><span·class="se">\n</span><span·class="s1">eggs&#39;</span>
130 <span·class="s1">&#39;</span><span·class="se">\n</span><span·class="s1">and</span><span·class="se">\n</span><span·class="s1">spam</span><span·class="se">\n</span><span·class="s1">&#39;</span>130 <span·class="s1">&#39;</span><span·class="se">\n</span><span·class="s1">and</span><span·class="se">\n</span><span·class="s1">spam</span><span·class="se">\n</span><span·class="s1">&#39;</span>
131 </pre></div>131 </pre></div>
132 </div>132 </div>
Max diff block lines reached; 7030/21239 bytes (33.10%) of diff not shown.
4.44 KB
html2text {}
    
Offset 9, 69 lines modifiedOffset 9, 69 lines modified
  
9 ****·Navigation·****9 ****·Navigation·****
10 ····*·index10 ····*·index
11 ····*·modules·|11 ····*·modules·|
12 ····*·next·|12 ····*·next·|
13 ····*·previous·|13 ····*·previous·|
14 ····*·pyxrootd_current_documentation·»14 ····*·pyxrootd_current_documentation·»
15 ····*·Examples·»15 ····*·3._Examples·»
16 ····*·2.·File·examples16 ····*·3.2.·File·examples
17 ******·2.·File·examples¶·******17 ******·3.2.·File·examples¶·******
18 This·page·includes·some·simple·examples·of·how·to·use·the·pyxrootdFileobject·to18 This·page·includes·some·simple·examples·of·how·to·use·the·pyxrootdFileobject·to
19 manipulate·files·on·an·xrootd·server.19 manipulate·files·on·an·xrootd·server.
20 We’ll·use·the·followingFileobject·as·a·basis·for·the·rest·of·the·examples:20 We’ll·use·the·followingFileobject·as·a·basis·for·the·rest·of·the·examples:
21 from·XRootD·import·client21 from·XRootD·import·client
22 from·XRootD.client.flags·import·OpenFlags22 from·XRootD.client.flags·import·OpenFlags
  
23 with·client.File()·as·f:23 with·client.File()·as·f:
24 ··f.open('root://someserver//tmp/eggs',·OpenFlags.UPDATE)24 ··f.open('root://someserver//tmp/eggs',·OpenFlags.UPDATE)
25 ··f.write('green\neggs\nand\nham\n')25 ··f.write('green\neggs\nand\nham\n')
26 *****·2.1.·Read·a·certain·amount·of·data·from·a·certain·offset·in·a·file¶26 *****·3.2.1.·Read·a·certain·amount·of·data·from·a·certain·offset·in·a·file¶
27 *****27 *****
28 ··status,·data·=·f.read()·#·Reads·the·whole·file28 ··status,·data·=·f.read()·#·Reads·the·whole·file
29 ··print·'%r'·%·data29 ··print·'%r'·%·data
30 ··print·f.get_property('DataServer')30 ··print·f.get_property('DataServer')
31 ··print·f.get_property('LastURL')31 ··print·f.get_property('LastURL')
32 ··print·f.get_property('ReadRecovery')32 ··print·f.get_property('ReadRecovery')
33 ··f.set_property('ReadRecovery',·'false')33 ··f.set_property('ReadRecovery',·'false')
34 ··print·f.get_property('ReadRecovery')34 ··print·f.get_property('ReadRecovery')
  
35 ··status,·data·=·f.read(offset=6,·size=4)·#·Reads·"eggs"35 ··status,·data·=·f.read(offset=6,·size=4)·#·Reads·"eggs"
36 ··print·'%r'·%·data36 ··print·'%r'·%·data
37 Produces·the·following·output:37 Produces·the·following·output:
38 'green\neggs\nand\nham\n'38 'green\neggs\nand\nham\n'
39 'eggs'39 'eggs'
40 *****·2.2.·Write·a·chunk·of·data·to·a·file¶·*****40 *****·3.2.2.·Write·a·chunk·of·data·to·a·file¶·*****
41 ··data·=·'spam\n'41 ··data·=·'spam\n'
42 ··f.write(data,·offset=15)42 ··f.write(data,·offset=15)
43 ··print·f.read()43 ··print·f.read()
44 Produces·the·following·output:44 Produces·the·following·output:
45 'green\neggs\nand\nspam\n'45 'green\neggs\nand\nspam\n'
46 *****·2.3.·Iterate·over·a·file,·delimited·by·newline·characters¶·*****46 *****·3.2.3.·Iterate·over·a·file,·delimited·by·newline·characters¶·*****
47 ··for·line·in·f:47 ··for·line·in·f:
48 ····print·'%r'·%·line48 ····print·'%r'·%·line
49 Produces·the·following·output:49 Produces·the·following·output:
50 'green\n'50 'green\n'
51 'eggs\n'51 'eggs\n'
52 'and\n'52 'and\n'
53 'spam\n'53 'spam\n'
54 *****·2.4.·Read·all·lines·from·a·file·into·a·list¶·*****54 *****·3.2.4.·Read·all·lines·from·a·file·into·a·list¶·*****
55 ··print·'%r'·%·f.readline()55 ··print·'%r'·%·f.readline()
56 ··print·f.readlines()56 ··print·f.readlines()
57 Produces·the·following·output·(Note·how·the·first·line·is·not·returned·with·the57 Produces·the·following·output·(Note·how·the·first·line·is·not·returned·with·the
58 call·to·readlines()·because·we·ate·it·with·the·first·call·to·readline()):58 call·to·readlines()·because·we·ate·it·with·the·first·call·to·readline()):
59 'green\n'59 'green\n'
60 ['eggs\n',·'and\n',·'spam\n']60 ['eggs\n',·'and\n',·'spam\n']
61 *****·2.5.·Iterate·over·a·file·in·chunks·of·the·specified·size¶·*****61 *****·3.2.5.·Iterate·over·a·file·in·chunks·of·the·specified·size¶·*****
62 ··for·chunk·in·f.readchunks(offset=0,·chunksize=10):62 ··for·chunk·in·f.readchunks(offset=0,·chunksize=10):
63 ····print·'%r'·%·chunk63 ····print·'%r'·%·chunk
64 Produces·the·following·output:64 Produces·the·following·output:
65 'green\neggs'65 'green\neggs'
66 '\nand\nspam\n'66 '\nand\nspam\n'
67 *****·2.6.·Read·scattered·data·chunks·in·one·operation¶·*****67 *****·3.2.6.·Read·scattered·data·chunks·in·one·operation¶·*****
68 ··f.write(r'The·XROOTD·project·aims·at·giving·high·performance,·scalable·'68 ··f.write(r'The·XROOTD·project·aims·at·giving·high·performance,·scalable·'
69 ··········+'·fault·tolerant·access·to·data·repositories·of·many·kinds')69 ··········+'·fault·tolerant·access·to·data·repositories·of·many·kinds')
  
70 ··size·=·f.stat()[1].size70 ··size·=·f.stat()[1].size
71 ··v·=·[(0,·40),·(40,·40),·(80,·size·-·80)]71 ··v·=·[(0,·40),·(40,·40),·(80,·size·-·80)]
  
72 ··status,·response·=·f.vector_read(chunks=v)72 ··status,·response·=·f.vector_read(chunks=v)
Offset 81, 31 lines modifiedOffset 81, 32 lines modified
81 ····print·chunk81 ····print·chunk
82 Produces·the·following·output:82 Produces·the·following·output:
83 <buffer:·'The·XROOTD·project·aims·at·giving·high·p',·length:·40,·offset:·0>83 <buffer:·'The·XROOTD·project·aims·at·giving·high·p',·length:·40,·offset:·0>
84 <buffer:·'erformance,·scalable··fault·tolerant·acc',·length:·40,·offset:·40>84 <buffer:·'erformance,·scalable··fault·tolerant·acc',·length:·40,·offset:·40>
85 <buffer:·'ess·to·data·repositories·of·many·kinds',·length:·38,·offset:·80>85 <buffer:·'ess·to·data·repositories·of·many·kinds',·length:·38,·offset:·80>
86 [Logo]86 [Logo]
87 ****·Table_of_Contents·****87 ****·Table_of_Contents·****
88 ····*·2._File_examples88 ····*·3.2._File_examples
89 ··········o·2.1._Read_a_certain_amount_of_data_from_a_certain_offset_in_a_file89 ··········o·3.2.1._Read_a_certain_amount_of_data_from_a_certain_offset_in_a
 90 ············file
90 ··········o·2.2._Write_a_chunk_of_data_to_a_file91 ··········o·3.2.2._Write_a_chunk_of_data_to_a_file
91 ··········o·2.3._Iterate_over_a_file,_delimited_by_newline_characters92 ··········o·3.2.3._Iterate_over_a_file,_delimited_by_newline_characters
92 ··········o·2.4._Read_all_lines_from_a_file_into_a_list93 ··········o·3.2.4._Read_all_lines_from_a_file_into_a_list
93 ··········o·2.5._Iterate_over_a_file_in_chunks_of_the_specified_size94 ··········o·3.2.5._Iterate_over_a_file_in_chunks_of_the_specified_size
94 ··········o·2.6._Read_scattered_data_chunks_in_one_operation95 ··········o·3.2.6._Read_scattered_data_chunks_in_one_operation
95 ***·Previous·topic·***96 ***·Previous·topic·***
96 1._FileSystem_examples97 3.1._FileSystem_examples
97 ***·Next·topic·***98 ***·Next·topic·***
98 3._CopyProcess_examples99 3.3._CopyProcess_examples
99 ****·This·Page·****100 ****·This·Page·****
100 ····*·Show_Source101 ····*·Show_Source
101 ****·Quick·search·****102 ****·Quick·search·****
102 [q···················]·[Go]103 [q···················]·[Go]
103 ****·Navigation·****104 ****·Navigation·****
104 ····*·index105 ····*·index
105 ····*·modules·|106 ····*·modules·|
106 ····*·next·|107 ····*·next·|
107 ····*·previous·|108 ····*·previous·|
108 ····*·pyxrootd_current_documentation·»109 ····*·pyxrootd_current_documentation·»
109 ····*·Examples·»110 ····*·3._Examples·»
110 ····*·2.·File·examples111 ····*·3.2.·File·examples
111 ©·Copyright·2020,·CERN.·Created·using·Sphinx·3.4.3.112 ©·Copyright·2020,·CERN.·Created·using·Sphinx·3.4.3.
24.3 KB
./usr/share/doc/xrootd/python/examples/filesystem.html
    
Offset 1, 77 lines modifiedOffset 1, 77 lines modified
  
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html>2 <html>
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>1.·FileSystem·examples·&#8212;·pyxrootd·current·documentation</title>6 ····<title>3.1.·FileSystem·examples·&#8212;·pyxrootd·current·documentation</title>
7 ····<link·rel="stylesheet"·href="../_static/pygments.css"·type="text/css"·/>7 ····<link·rel="stylesheet"·href="../_static/pygments.css"·type="text/css"·/>
8 ····<link·rel="stylesheet"·href="../_static/basic.css"·type="text/css"·/>8 ····<link·rel="stylesheet"·href="../_static/basic.css"·type="text/css"·/>
9 ····<link·rel="stylesheet"·href="../_static/css/custom.css"·type="text/css"·/>9 ····<link·rel="stylesheet"·href="../_static/css/custom.css"·type="text/css"·/>
10 ····<script·id="documentation_options"·data-url_root="../"·src="../_static/documentation_options.js"></script>10 ····<script·id="documentation_options"·data-url_root="../"·src="../_static/documentation_options.js"></script>
11 ····<script·src="../_static/jquery.js"></script>11 ····<script·src="../_static/jquery.js"></script>
12 ····<script·src="../_static/underscore.js"></script>12 ····<script·src="../_static/underscore.js"></script>
13 ····<script·src="../_static/doctools.js"></script>13 ····<script·src="../_static/doctools.js"></script>
14 ····<link·rel="shortcut·icon"·href="../_static/img/favicon.ico?v=2"/>14 ····<link·rel="shortcut·icon"·href="../_static/img/favicon.ico?v=2"/>
15 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>15 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>
16 ····<link·rel="search"·title="Search"·href="../search.html"·/>16 ····<link·rel="search"·title="Search"·href="../search.html"·/>
17 ····<link·rel="next"·title="2.·File·examples"·href="file.html"·/>17 ····<link·rel="next"·title="3.2.·File·examples"·href="file.html"·/>
18 ····<link·rel="prev"·title="Examples"·href="../examples.html"·/>·18 ····<link·rel="prev"·title="3.·Examples"·href="../examples.html"·/>·
19 ··</head><body>19 ··</head><body>
20 ····<div·class="related"·role="navigation"·aria-label="related·navigation">20 ····<div·class="related"·role="navigation"·aria-label="related·navigation">
21 ······<h3>Navigation</h3>21 ······<h3>Navigation</h3>
22 ······<ul>22 ······<ul>
23 ········<li·class="right"·style="margin-right:·10px">23 ········<li·class="right"·style="margin-right:·10px">
24 ··········<a·href="../genindex.html"·title="General·Index"24 ··········<a·href="../genindex.html"·title="General·Index"
25 ·············accesskey="I">index</a></li>25 ·············accesskey="I">index</a></li>
26 ········<li·class="right"·>26 ········<li·class="right"·>
27 ··········<a·href="../py-modindex.html"·title="Python·Module·Index"27 ··········<a·href="../py-modindex.html"·title="Python·Module·Index"
28 ·············>modules</a>·|</li>28 ·············>modules</a>·|</li>
29 ········<li·class="right"·>29 ········<li·class="right"·>
30 ··········<a·href="file.html"·title="2.·File·examples"30 ··········<a·href="file.html"·title="3.2.·File·examples"
31 ·············accesskey="N">next</a>·|</li>31 ·············accesskey="N">next</a>·|</li>
32 ········<li·class="right"·>32 ········<li·class="right"·>
33 ··········<a·href="../examples.html"·title="Examples"33 ··········<a·href="../examples.html"·title="3.·Examples"
34 ·············accesskey="P">previous</a>·|</li>34 ·············accesskey="P">previous</a>·|</li>
35 ········<li·class="nav-item·nav-item-0"><a·href="../index.html">pyxrootd·current·documentation</a>·&#187;</li>35 ········<li·class="nav-item·nav-item-0"><a·href="../index.html">pyxrootd·current·documentation</a>·&#187;</li>
36 ··········<li·class="nav-item·nav-item-1"><a·href="../examples.html"·accesskey="U"><strong>Examples</strong></a>·&#187;</li>36 ··········<li·class="nav-item·nav-item-1"><a·href="../examples.html"·accesskey="U"><span·class="section-number">3.·</span><strong>Examples</strong></a>·&#187;</li>
37 ········<li·class="nav-item·nav-item-this"><a·href=""><span·class="section-number">1.·</span><code·class="docutils·literal·notranslate"><span·class="pre">FileSystem</span></code>·examples</a></li>·37 ········<li·class="nav-item·nav-item-this"><a·href=""><span·class="section-number">3.1.·</span><code·class="docutils·literal·notranslate"><span·class="pre">FileSystem</span></code>·examples</a></li>·
38 ······</ul>38 ······</ul>
39 ····</div>··39 ····</div>··
  
40 ····<div·class="document">40 ····<div·class="document">
41 ······<div·class="documentwrapper">41 ······<div·class="documentwrapper">
42 ········<div·class="bodywrapper">42 ········<div·class="bodywrapper">
43 ··········<div·class="body"·role="main">43 ··········<div·class="body"·role="main">
44 ············44 ············
45 ··<div·class="section"·id="filesystem-examples">45 ··<div·class="section"·id="filesystem-examples">
46 <h1><span·class="section-number">1.·</span><code·class="docutils·literal·notranslate"><span·class="pre">FileSystem</span></code>·examples<a·class="headerlink"·href="#filesystem-examples"·title="Permalink·to·this·headline">¶</a></h1>46 <h1><span·class="section-number">3.1.·</span><code·class="docutils·literal·notranslate"><span·class="pre">FileSystem</span></code>·examples<a·class="headerlink"·href="#filesystem-examples"·title="Permalink·to·this·headline">¶</a></h1>
47 <p>This·page·includes·some·simple·examples·of·basic·usage·of·the·<code·class="docutils·literal·notranslate"><span·class="pre">pyxrootd</span></code>47 <p>This·page·includes·some·simple·examples·of·basic·usage·of·the·<code·class="docutils·literal·notranslate"><span·class="pre">pyxrootd</span></code>
48 <cite>FileSystem</cite>·object·to·interact·with·an·<code·class="docutils·literal·notranslate"><span·class="pre">xrootd</span></code>·server.</p>48 <cite>FileSystem</cite>·object·to·interact·with·an·<code·class="docutils·literal·notranslate"><span·class="pre">xrootd</span></code>·server.</p>
49 <p>We’ll·use·the·following·imports·and·<cite>FileSystem</cite>·object·as·the·basis·for·the49 <p>We’ll·use·the·following·imports·and·<cite>FileSystem</cite>·object·as·the·basis·for·the
50 rest·of·the·examples:</p>50 rest·of·the·examples:</p>
51 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">from</span>·<span·class="nn">XRootD</span>·<span·class="kn">import</span>·<span·class="n">client</span>51 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">from</span>·<span·class="nn">XRootD</span>·<span·class="kn">import</span>·<span·class="n">client</span>
52 <span·class="kn">from</span>·<span·class="nn">XRootD.client.flags</span>·<span·class="kn">import</span>·<span·class="n">DirListFlags</span><span·class="p">,</span>·<span·class="n">OpenFlags</span><span·class="p">,</span>·<span·class="n">MkDirFlags</span><span·class="p">,</span>·<span·class="n">QueryCode</span>52 <span·class="kn">from</span>·<span·class="nn">XRootD.client.flags</span>·<span·class="kn">import</span>·<span·class="n">DirListFlags</span><span·class="p">,</span>·<span·class="n">OpenFlags</span><span·class="p">,</span>·<span·class="n">MkDirFlags</span><span·class="p">,</span>·<span·class="n">QueryCode</span>
  
53 <span·class="n">myclient</span>·<span·class="o">=</span>·<span·class="n">client</span><span·class="o">.</span><span·class="n">FileSystem</span><span·class="p">(</span><span·class="s1">&#39;root://someserver:1094&#39;</span><span·class="p">)</span>53 <span·class="n">myclient</span>·<span·class="o">=</span>·<span·class="n">client</span><span·class="o">.</span><span·class="n">FileSystem</span><span·class="p">(</span><span·class="s1">&#39;root://someserver:1094&#39;</span><span·class="p">)</span>
54 </pre></div>54 </pre></div>
55 </div>55 </div>
56 <div·class="section"·id="copy-a-file">56 <div·class="section"·id="copy-a-file">
57 <h2><span·class="section-number">1.1.·</span>Copy·a·file<a·class="headerlink"·href="#copy-a-file"·title="Permalink·to·this·headline">¶</a></h2>57 <h2><span·class="section-number">3.1.1.·</span>Copy·a·file<a·class="headerlink"·href="#copy-a-file"·title="Permalink·to·this·headline">¶</a></h2>
58 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="n">status</span>·<span·class="o">=</span>·<span·class="n">myclient</span><span·class="o">.</span><span·class="n">copy</span><span·class="p">(</span><span·class="s1">&#39;/tmp/spam&#39;</span><span·class="p">,</span>·<span·class="s1">&#39;/tmp/eggs&#39;</span><span·class="p">,</span>·<span·class="n">force</span><span·class="o">=</span><span·class="kc">True</span><span·class="p">)</span>58 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="n">status</span>·<span·class="o">=</span>·<span·class="n">myclient</span><span·class="o">.</span><span·class="n">copy</span><span·class="p">(</span><span·class="s1">&#39;/tmp/spam&#39;</span><span·class="p">,</span>·<span·class="s1">&#39;/tmp/eggs&#39;</span><span·class="p">,</span>·<span·class="n">force</span><span·class="o">=</span><span·class="kc">True</span><span·class="p">)</span>
59 <span·class="k">assert</span>·<span·class="n">status</span><span·class="p">[</span><span·class="mi">0</span><span·class="p">]</span><span·class="o">.</span><span·class="n">ok</span>59 <span·class="k">assert</span>·<span·class="n">status</span><span·class="p">[</span><span·class="mi">0</span><span·class="p">]</span><span·class="o">.</span><span·class="n">ok</span>
60 </pre></div>60 </pre></div>
61 </div>61 </div>
62 <p>See·<a·class="reference·internal"·href="../modules/client/copyprocess.html#XRootD.client.CopyProcess"·title="XRootD.client.CopyProcess"><code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">XRootD.client.CopyProcess</span></code></a>·if·you·need·multiple/more·configurable62 <p>See·<a·class="reference·internal"·href="../modules/client/copyprocess.html#XRootD.client.CopyProcess"·title="XRootD.client.CopyProcess"><code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">XRootD.client.CopyProcess</span></code></a>·if·you·need·multiple/more·configurable
63 copy·jobs.</p>63 copy·jobs.</p>
64 </div>64 </div>
65 <div·class="section"·id="ask-a-for-a-directory-listing">65 <div·class="section"·id="ask-a-for-a-directory-listing">
66 <h2><span·class="section-number">1.2.·</span>Ask·a·for·a·directory·listing<a·class="headerlink"·href="#ask-a-for-a-directory-listing"·title="Permalink·to·this·headline">¶</a></h2>66 <h2><span·class="section-number">3.1.2.·</span>Ask·a·for·a·directory·listing<a·class="headerlink"·href="#ask-a-for-a-directory-listing"·title="Permalink·to·this·headline">¶</a></h2>
67 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="n">status</span><span·class="p">,</span>·<span·class="n">listing</span>·<span·class="o">=</span>·<span·class="n">myclient</span><span·class="o">.</span><span·class="n">dirlist</span><span·class="p">(</span><span·class="s1">&#39;/tmp&#39;</span><span·class="p">,</span>·<span·class="n">DirListFlags</span><span·class="o">.</span><span·class="n">STAT</span><span·class="p">)</span>67 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="n">status</span><span·class="p">,</span>·<span·class="n">listing</span>·<span·class="o">=</span>·<span·class="n">myclient</span><span·class="o">.</span><span·class="n">dirlist</span><span·class="p">(</span><span·class="s1">&#39;/tmp&#39;</span><span·class="p">,</span>·<span·class="n">DirListFlags</span><span·class="o">.</span><span·class="n">STAT</span><span·class="p">)</span>
  
68 <span·class="nb">print</span>·<span·class="n">listing</span><span·class="o">.</span><span·class="n">parent</span>68 <span·class="nb">print</span>·<span·class="n">listing</span><span·class="o">.</span><span·class="n">parent</span>
69 <span·class="k">for</span>·<span·class="n">entry</span>·<span·class="ow">in</span>·<span·class="n">listing</span><span·class="p">:</span>69 <span·class="k">for</span>·<span·class="n">entry</span>·<span·class="ow">in</span>·<span·class="n">listing</span><span·class="p">:</span>
70 ··<span·class="nb">print</span>·<span·class="s2">&quot;</span><span·class="si">{0}</span><span·class="s2">·</span><span·class="si">{1:&gt;10}</span><span·class="s2">·</span><span·class="si">{2}</span><span·class="s2">&quot;</span><span·class="o">.</span><span·class="n">format</span><span·class="p">(</span><span·class="n">entry</span><span·class="o">.</span><span·class="n">statinfo</span><span·class="o">.</span><span·class="n">modtimestr</span><span·class="p">,</span>·<span·class="n">entry</span><span·class="o">.</span><span·class="n">statinfo</span><span·class="o">.</span><span·class="n">size</span><span·class="p">,</span>·<span·class="n">entry</span><span·class="o">.</span><span·class="n">name</span><span·class="p">)</span>70 ··<span·class="nb">print</span>·<span·class="s2">&quot;</span><span·class="si">{0}</span><span·class="s2">·</span><span·class="si">{1:&gt;10}</span><span·class="s2">·</span><span·class="si">{2}</span><span·class="s2">&quot;</span><span·class="o">.</span><span·class="n">format</span><span·class="p">(</span><span·class="n">entry</span><span·class="o">.</span><span·class="n">statinfo</span><span·class="o">.</span><span·class="n">modtimestr</span><span·class="p">,</span>·<span·class="n">entry</span><span·class="o">.</span><span·class="n">statinfo</span><span·class="o">.</span><span·class="n">size</span><span·class="p">,</span>·<span·class="n">entry</span><span·class="o">.</span><span·class="n">name</span><span·class="p">)</span>
71 </pre></div>71 </pre></div>
72 </div>72 </div>
Offset 79, 51 lines modifiedOffset 79, 51 lines modified
79 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="mi">2013</span><span·class="o">-</span><span·class="mi">04</span><span·class="o">-</span><span·class="mi">12</span>·<span·class="mi">09</span><span·class="p">:</span><span·class="mi">46</span><span·class="p">:</span><span·class="mi">51</span>·········<span·class="mi">20</span>·<span·class="n">spam</span>79 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="mi">2013</span><span·class="o">-</span><span·class="mi">04</span><span·class="o">-</span><span·class="mi">12</span>·<span·class="mi">09</span><span·class="p">:</span><span·class="mi">46</span><span·class="p">:</span><span·class="mi">51</span>·········<span·class="mi">20</span>·<span·class="n">spam</span>
80 <span·class="mi">2013</span><span·class="o">-</span><span·class="mi">04</span><span·class="o">-</span><span·class="mi">05</span>·<span·class="mi">08</span><span·class="p">:</span><span·class="mi">23</span><span·class="p">:</span><span·class="mi">00</span>·······<span·class="mi">4096</span>·<span·class="o">.</span><span·class="n">xrootd</span>80 <span·class="mi">2013</span><span·class="o">-</span><span·class="mi">04</span><span·class="o">-</span><span·class="mi">05</span>·<span·class="mi">08</span><span·class="p">:</span><span·class="mi">23</span><span·class="p">:</span><span·class="mi">00</span>·······<span·class="mi">4096</span>·<span·class="o">.</span><span·class="n">xrootd</span>
81 <span·class="mi">2013</span><span·class="o">-</span><span·class="mi">04</span><span·class="o">-</span><span·class="mi">12</span>·<span·class="mi">09</span><span·class="p">:</span><span·class="mi">33</span><span·class="p">:</span><span·class="mi">25</span>·········<span·class="mi">20</span>·<span·class="n">eggs</span>81 <span·class="mi">2013</span><span·class="o">-</span><span·class="mi">04</span><span·class="o">-</span><span·class="mi">12</span>·<span·class="mi">09</span><span·class="p">:</span><span·class="mi">33</span><span·class="p">:</span><span·class="mi">25</span>·········<span·class="mi">20</span>·<span·class="n">eggs</span>
82 </pre></div>82 </pre></div>
83 </div>83 </div>
84 </div>84 </div>
85 <div·class="section"·id="make-a-directory">85 <div·class="section"·id="make-a-directory">
86 <h2><span·class="section-number">1.3.·</span>Make·a·directory<a·class="headerlink"·href="#make-a-directory"·title="Permalink·to·this·headline">¶</a></h2>86 <h2><span·class="section-number">3.1.3.·</span>Make·a·directory<a·class="headerlink"·href="#make-a-directory"·title="Permalink·to·this·headline">¶</a></h2>
87 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="n">myclient</span><span·class="o">.</span><span·class="n">mkdir</span><span·class="p">(</span><span·class="s2">&quot;/tmp/some/dir&quot;</span><span·class="p">,</span>·<span·class="n">MkDirFlags</span><span·class="o">.</span><span·class="n">MAKEPATH</span><span·class="p">)</span>87 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="n">myclient</span><span·class="o">.</span><span·class="n">mkdir</span><span·class="p">(</span><span·class="s2">&quot;/tmp/some/dir&quot;</span><span·class="p">,</span>·<span·class="n">MkDirFlags</span><span·class="o">.</span><span·class="n">MAKEPATH</span><span·class="p">)</span>
88 </pre></div>88 </pre></div>
89 </div>89 </div>
90 </div>90 </div>
91 <div·class="section"·id="delete-a-directory">91 <div·class="section"·id="delete-a-directory">
92 <h2><span·class="section-number">1.4.·</span>Delete·a·directory<a·class="headerlink"·href="#delete-a-directory"·title="Permalink·to·this·headline">¶</a></h2>92 <h2><span·class="section-number">3.1.4.·</span>Delete·a·directory<a·class="headerlink"·href="#delete-a-directory"·title="Permalink·to·this·headline">¶</a></h2>
93 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="nb">print</span>·<span·class="n">myclient</span><span·class="o">.</span><span·class="n">rmdir</span><span·class="p">(</span><span·class="s2">&quot;/tmp/some/dir&quot;</span><span·class="p">)</span>93 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="nb">print</span>·<span·class="n">myclient</span><span·class="o">.</span><span·class="n">rmdir</span><span·class="p">(</span><span·class="s2">&quot;/tmp/some/dir&quot;</span><span·class="p">)</span>
94 </pre></div>94 </pre></div>
95 </div>95 </div>
96 </div>96 </div>
97 <div·class="section"·id="move-rename-a-file">97 <div·class="section"·id="move-rename-a-file">
98 <h2><span·class="section-number">1.5.·</span>Move/rename·a·file<a·class="headerlink"·href="#move-rename-a-file"·title="Permalink·to·this·headline">¶</a></h2>98 <h2><span·class="section-number">3.1.5.·</span>Move/rename·a·file<a·class="headerlink"·href="#move-rename-a-file"·title="Permalink·to·this·headline">¶</a></h2>
99 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="nb">print</span>·<span·class="n">myclient</span><span·class="o">.</span><span·class="n">mv</span><span·class="p">(</span><span·class="s2">&quot;/tmp/spam&quot;</span><span·class="p">,</span>·<span·class="s2">&quot;/tmp/eggs&quot;</span><span·class="p">)</span>99 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="nb">print</span>·<span·class="n">myclient</span><span·class="o">.</span><span·class="n">mv</span><span·class="p">(</span><span·class="s2">&quot;/tmp/spam&quot;</span><span·class="p">,</span>·<span·class="s2">&quot;/tmp/eggs&quot;</span><span·class="p">)</span>
100 </pre></div>100 </pre></div>
101 </div>101 </div>
102 </div>102 </div>
103 <div·class="section"·id="delete-a-file">103 <div·class="section"·id="delete-a-file">
104 <h2><span·class="section-number">1.6.·</span>Delete·a·file<a·class="headerlink"·href="#delete-a-file"·title="Permalink·to·this·headline">¶</a></h2>104 <h2><span·class="section-number">3.1.6.·</span>Delete·a·file<a·class="headerlink"·href="#delete-a-file"·title="Permalink·to·this·headline">¶</a></h2>
105 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="nb">print</span>·<span·class="n">myclient</span><span·class="o">.</span><span·class="n">rm</span><span·class="p">(</span><span·class="s2">&quot;/tmp/eggs&quot;</span><span·class="p">)</span>105 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="nb">print</span>·<span·class="n">myclient</span><span·class="o">.</span><span·class="n">rm</span><span·class="p">(</span><span·class="s2">&quot;/tmp/eggs&quot;</span><span·class="p">)</span>
106 </pre></div>106 </pre></div>
107 </div>107 </div>
108 </div>108 </div>
109 <div·class="section"·id="locate-a-file">109 <div·class="section"·id="locate-a-file">
110 <h2><span·class="section-number">1.7.·</span>Locate·a·file<a·class="headerlink"·href="#locate-a-file"·title="Permalink·to·this·headline">¶</a></h2>110 <h2><span·class="section-number">3.1.7.·</span>Locate·a·file<a·class="headerlink"·href="#locate-a-file"·title="Permalink·to·this·headline">¶</a></h2>
111 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="n">status</span><span·class="p">,</span>·<span·class="n">locations</span>·<span·class="o">=</span>·<span·class="n">myclient</span><span·class="o">.</span><span·class="n">locate</span><span·class="p">(</span><span·class="s2">&quot;/tmp&quot;</span><span·class="p">,</span>·<span·class="n">OpenFlags</span><span·class="o">.</span><span·class="n">REFRESH</span><span·class="p">)</span>111 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="n">status</span><span·class="p">,</span>·<span·class="n">locations</span>·<span·class="o">=</span>·<span·class="n">myclient</span><span·class="o">.</span><span·class="n">locate</span><span·class="p">(</span><span·class="s2">&quot;/tmp&quot;</span><span·class="p">,</span>·<span·class="n">OpenFlags</span><span·class="o">.</span><span·class="n">REFRESH</span><span·class="p">)</span>
  
112 <span·class="nb">print</span>·<span·class="n">locations</span>112 <span·class="nb">print</span>·<span·class="n">locations</span>
113 </pre></div>113 </pre></div>
114 </div>114 </div>
115 <p>Produces·output·similar·to·the·following:</p>115 <p>Produces·output·similar·to·the·following:</p>
116 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="o">&lt;</span><span·class="n">locations</span><span·class="p">:</span>·<span·class="p">[</span><span·class="o">&lt;</span><span·class="nb">type</span><span·class="p">:</span>·<span·class="mi">2</span><span·class="p">,</span>·<span·class="n">address</span><span·class="p">:</span>·<span·class="s1">&#39;[::127.0.0.1]:1094&#39;</span><span·class="p">,</span>·<span·class="n">accesstype</span><span·class="p">:</span>·<span·class="mi">1</span><span·class="p">,</span>·<span·class="n">is_manager</span><span·class="p">:</span>·<span·class="kc">False</span><span·class="p">,</span>·<span·class="n">is_server</span><span·class="p">:</span>·<span·class="kc">True</span><span·class="o">&gt;</span><span·class="p">]</span><span·class="o">&gt;</span>116 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="o">&lt;</span><span·class="n">locations</span><span·class="p">:</span>·<span·class="p">[</span><span·class="o">&lt;</span><span·class="nb">type</span><span·class="p">:</span>·<span·class="mi">2</span><span·class="p">,</span>·<span·class="n">address</span><span·class="p">:</span>·<span·class="s1">&#39;[::127.0.0.1]:1094&#39;</span><span·class="p">,</span>·<span·class="n">accesstype</span><span·class="p">:</span>·<span·class="mi">1</span><span·class="p">,</span>·<span·class="n">is_manager</span><span·class="p">:</span>·<span·class="kc">False</span><span·class="p">,</span>·<span·class="n">is_server</span><span·class="p">:</span>·<span·class="kc">True</span><span·class="o">&gt;</span><span·class="p">]</span><span·class="o">&gt;</span>
117 </pre></div>117 </pre></div>
118 </div>118 </div>
119 </div>119 </div>
120 <div·class="section"·id="ask-the-server-for-some-information">120 <div·class="section"·id="ask-the-server-for-some-information">
121 <h2><span·class="section-number">1.8.·</span>Ask·the·server·for·some·information<a·class="headerlink"·href="#ask-the-server-for-some-information"·title="Permalink·to·this·headline">¶</a></h2>121 <h2><span·class="section-number">3.1.8.·</span>Ask·the·server·for·some·information<a·class="headerlink"·href="#ask-the-server-for-some-information"·title="Permalink·to·this·headline">¶</a></h2>
122 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="n">status</span><span·class="p">,</span>·<span·class="n">response</span>·<span·class="o">=</span>·<span·class="n">myclient</span><span·class="o">.</span><span·class="n">query</span><span·class="p">(</span><span·class="n">QueryCode</span><span·class="o">.</span><span·class="n">SPACE</span><span·class="p">,</span>·<span·class="s1">&#39;/tmp&#39;</span><span·class="p">)</span>122 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="n">status</span><span·class="p">,</span>·<span·class="n">response</span>·<span·class="o">=</span>·<span·class="n">myclient</span><span·class="o">.</span><span·class="n">query</span><span·class="p">(</span><span·class="n">QueryCode</span><span·class="o">.</span><span·class="n">SPACE</span><span·class="p">,</span>·<span·class="s1">&#39;/tmp&#39;</span><span·class="p">)</span>
  
123 <span·class="nb">print</span>·<span·class="n">response</span>123 <span·class="nb">print</span>·<span·class="n">response</span>
124 </pre></div>124 </pre></div>
125 </div>125 </div>
Max diff block lines reached; 5887/20857 bytes (28.23%) of diff not shown.
3.79 KB
html2text {}
    
Offset 9, 85 lines modifiedOffset 9, 85 lines modified
  
9 ****·Navigation·****9 ****·Navigation·****
10 ····*·index10 ····*·index
11 ····*·modules·|11 ····*·modules·|
12 ····*·next·|12 ····*·next·|
13 ····*·previous·|13 ····*·previous·|
14 ····*·pyxrootd_current_documentation·»14 ····*·pyxrootd_current_documentation·»
15 ····*·Examples·»15 ····*·3._Examples·»
16 ····*·1.·FileSystem·examples16 ····*·3.1.·FileSystem·examples
17 ******·1.·FileSystem·examples¶·******17 ******·3.1.·FileSystem·examples¶·******
18 This·page·includes·some·simple·examples·of·basic·usage·of·the18 This·page·includes·some·simple·examples·of·basic·usage·of·the
19 pyxrootdFileSystemobject·to·interact·with·an·xrootd·server.19 pyxrootdFileSystemobject·to·interact·with·an·xrootd·server.
20 We’ll·use·the·following·imports·andFileSystemobject·as·the·basis·for·the·rest20 We’ll·use·the·following·imports·andFileSystemobject·as·the·basis·for·the·rest
21 of·the·examples:21 of·the·examples:
22 from·XRootD·import·client22 from·XRootD·import·client
23 from·XRootD.client.flags·import·DirListFlags,·OpenFlags,·MkDirFlags,·QueryCode23 from·XRootD.client.flags·import·DirListFlags,·OpenFlags,·MkDirFlags,·QueryCode
  
24 myclient·=·client.FileSystem('root://someserver:1094')24 myclient·=·client.FileSystem('root://someserver:1094')
25 *****·1.1.·Copy·a·file¶·*****25 *****·3.1.1.·Copy·a·file¶·*****
26 status·=·myclient.copy('/tmp/spam',·'/tmp/eggs',·force=True)26 status·=·myclient.copy('/tmp/spam',·'/tmp/eggs',·force=True)
27 assert·status[0].ok27 assert·status[0].ok
28 See·XRootD.client.CopyProcess·if·you·need·multiple/more·configurable·copy·jobs.28 See·XRootD.client.CopyProcess·if·you·need·multiple/more·configurable·copy·jobs.
29 *****·1.2.·Ask·a·for·a·directory·listing¶·*****29 *****·3.1.2.·Ask·a·for·a·directory·listing¶·*****
30 status,·listing·=·myclient.dirlist('/tmp',·DirListFlags.STAT)30 status,·listing·=·myclient.dirlist('/tmp',·DirListFlags.STAT)
  
31 print·listing.parent31 print·listing.parent
32 for·entry·in·listing:32 for·entry·in·listing:
33 ··print·"{0}·{1:>10}·{2}".format(entry.statinfo.modtimestr,33 ··print·"{0}·{1:>10}·{2}".format(entry.statinfo.modtimestr,
34 entry.statinfo.size,·entry.name)34 entry.statinfo.size,·entry.name)
35 Produces·output·similar·to·the·following:35 Produces·output·similar·to·the·following:
36 2013-04-12·09:46:51·········20·spam36 2013-04-12·09:46:51·········20·spam
37 2013-04-05·08:23:00·······4096·.xrootd37 2013-04-05·08:23:00·······4096·.xrootd
38 2013-04-12·09:33:25·········20·eggs38 2013-04-12·09:33:25·········20·eggs
39 *****·1.3.·Make·a·directory¶·*****39 *****·3.1.3.·Make·a·directory¶·*****
40 myclient.mkdir("/tmp/some/dir",·MkDirFlags.MAKEPATH)40 myclient.mkdir("/tmp/some/dir",·MkDirFlags.MAKEPATH)
41 *****·1.4.·Delete·a·directory¶·*****41 *****·3.1.4.·Delete·a·directory¶·*****
42 print·myclient.rmdir("/tmp/some/dir")42 print·myclient.rmdir("/tmp/some/dir")
43 *****·1.5.·Move/rename·a·file¶·*****43 *****·3.1.5.·Move/rename·a·file¶·*****
44 print·myclient.mv("/tmp/spam",·"/tmp/eggs")44 print·myclient.mv("/tmp/spam",·"/tmp/eggs")
45 *****·1.6.·Delete·a·file¶·*****45 *****·3.1.6.·Delete·a·file¶·*****
46 print·myclient.rm("/tmp/eggs")46 print·myclient.rm("/tmp/eggs")
47 *****·1.7.·Locate·a·file¶·*****47 *****·3.1.7.·Locate·a·file¶·*****
48 status,·locations·=·myclient.locate("/tmp",·OpenFlags.REFRESH)48 status,·locations·=·myclient.locate("/tmp",·OpenFlags.REFRESH)
  
49 print·locations49 print·locations
50 Produces·output·similar·to·the·following:50 Produces·output·similar·to·the·following:
51 <locations:·[<type:·2,·address:·'[::127.0.0.1]:1094',·accesstype:·1,51 <locations:·[<type:·2,·address:·'[::127.0.0.1]:1094',·accesstype:·1,
52 is_manager:·False,·is_server:·True>]>52 is_manager:·False,·is_server:·True>]>
53 *****·1.8.·Ask·the·server·for·some·information¶·*****53 *****·3.1.8.·Ask·the·server·for·some·information¶·*****
54 status,·response·=·myclient.query(QueryCode.SPACE,·'/tmp')54 status,·response·=·myclient.query(QueryCode.SPACE,·'/tmp')
  
55 print·response55 print·response
56 Produces·output·similar·to·the·following:56 Produces·output·similar·to·the·following:
57 oss.cgroup=public&oss.space=52844687360&oss.free=27084992512&oss.maxf=27084992512&oss.used=25759694848&oss.quota=-57 oss.cgroup=public&oss.space=52844687360&oss.free=27084992512&oss.maxf=27084992512&oss.used=25759694848&oss.quota=-
58 158 1
59 For·more·information·about·XRootD·query·codes·and·arguments,·see·the_relevant59 For·more·information·about·XRootD·query·codes·and·arguments,·see·the_relevant
60 section_in_the_protocol_reference.60 section_in_the_protocol_reference.
61 [Logo]61 [Logo]
62 ****·Table_of_Contents·****62 ****·Table_of_Contents·****
63 ····*·1._FileSystem_examples63 ····*·3.1._FileSystem_examples
64 ··········o·1.1._Copy_a_file64 ··········o·3.1.1._Copy_a_file
65 ··········o·1.2._Ask_a_for_a_directory_listing65 ··········o·3.1.2._Ask_a_for_a_directory_listing
66 ··········o·1.3._Make_a_directory66 ··········o·3.1.3._Make_a_directory
67 ··········o·1.4._Delete_a_directory67 ··········o·3.1.4._Delete_a_directory
68 ··········o·1.5._Move/rename_a_file68 ··········o·3.1.5._Move/rename_a_file
69 ··········o·1.6._Delete_a_file69 ··········o·3.1.6._Delete_a_file
70 ··········o·1.7._Locate_a_file70 ··········o·3.1.7._Locate_a_file
71 ··········o·1.8._Ask_the_server_for_some_information71 ··········o·3.1.8._Ask_the_server_for_some_information
72 ***·Previous·topic·***72 ***·Previous·topic·***
73 Examples73 3._Examples
74 ***·Next·topic·***74 ***·Next·topic·***
75 2._File_examples75 3.2._File_examples
76 ****·This·Page·****76 ****·This·Page·****
77 ····*·Show_Source77 ····*·Show_Source
78 ****·Quick·search·****78 ****·Quick·search·****
79 [q···················]·[Go]79 [q···················]·[Go]
80 ****·Navigation·****80 ****·Navigation·****
81 ····*·index81 ····*·index
82 ····*·modules·|82 ····*·modules·|
83 ····*·next·|83 ····*·next·|
84 ····*·previous·|84 ····*·previous·|
85 ····*·pyxrootd_current_documentation·»85 ····*·pyxrootd_current_documentation·»
86 ····*·Examples·»86 ····*·3._Examples·»
87 ····*·1.·FileSystem·examples87 ····*·3.1.·FileSystem·examples
88 ©·Copyright·2020,·CERN.·Created·using·Sphinx·3.4.3.88 ©·Copyright·2020,·CERN.·Created·using·Sphinx·3.4.3.
13.6 KB
./usr/share/doc/xrootd/python/examples.html
    
Offset 1, 79 lines modifiedOffset 1, 79 lines modified
  
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html>2 <html>
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>Examples·&#8212;·pyxrootd·current·documentation</title>6 ····<title>3.·Examples·&#8212;·pyxrootd·current·documentation</title>
7 ····<link·rel="stylesheet"·href="_static/pygments.css"·type="text/css"·/>7 ····<link·rel="stylesheet"·href="_static/pygments.css"·type="text/css"·/>
8 ····<link·rel="stylesheet"·href="_static/basic.css"·type="text/css"·/>8 ····<link·rel="stylesheet"·href="_static/basic.css"·type="text/css"·/>
9 ····<link·rel="stylesheet"·href="_static/css/custom.css"·type="text/css"·/>9 ····<link·rel="stylesheet"·href="_static/css/custom.css"·type="text/css"·/>
10 ····<script·id="documentation_options"·data-url_root="./"·src="_static/documentation_options.js"></script>10 ····<script·id="documentation_options"·data-url_root="./"·src="_static/documentation_options.js"></script>
11 ····<script·src="_static/jquery.js"></script>11 ····<script·src="_static/jquery.js"></script>
12 ····<script·src="_static/underscore.js"></script>12 ····<script·src="_static/underscore.js"></script>
13 ····<script·src="_static/doctools.js"></script>13 ····<script·src="_static/doctools.js"></script>
14 ····<link·rel="shortcut·icon"·href="_static/img/favicon.ico?v=2"/>14 ····<link·rel="shortcut·icon"·href="_static/img/favicon.ico?v=2"/>
15 ····<link·rel="index"·title="Index"·href="genindex.html"·/>15 ····<link·rel="index"·title="Index"·href="genindex.html"·/>
16 ····<link·rel="search"·title="Search"·href="search.html"·/>16 ····<link·rel="search"·title="Search"·href="search.html"·/>
17 ····<link·rel="next"·title="1.·FileSystem·examples"·href="examples/filesystem.html"·/>17 ····<link·rel="next"·title="3.1.·FileSystem·examples"·href="examples/filesystem.html"·/>
18 ····<link·rel="prev"·title="2.·Getting·Started"·href="gettingstarted.html"·/>·18 ····<link·rel="prev"·title="2.·Getting·Started"·href="gettingstarted.html"·/>·
19 ··</head><body>19 ··</head><body>
20 ····<div·class="related"·role="navigation"·aria-label="related·navigation">20 ····<div·class="related"·role="navigation"·aria-label="related·navigation">
21 ······<h3>Navigation</h3>21 ······<h3>Navigation</h3>
22 ······<ul>22 ······<ul>
23 ········<li·class="right"·style="margin-right:·10px">23 ········<li·class="right"·style="margin-right:·10px">
24 ··········<a·href="genindex.html"·title="General·Index"24 ··········<a·href="genindex.html"·title="General·Index"
25 ·············accesskey="I">index</a></li>25 ·············accesskey="I">index</a></li>
26 ········<li·class="right"·>26 ········<li·class="right"·>
27 ··········<a·href="py-modindex.html"·title="Python·Module·Index"27 ··········<a·href="py-modindex.html"·title="Python·Module·Index"
28 ·············>modules</a>·|</li>28 ·············>modules</a>·|</li>
29 ········<li·class="right"·>29 ········<li·class="right"·>
30 ··········<a·href="examples/filesystem.html"·title="1.·FileSystem·examples"30 ··········<a·href="examples/filesystem.html"·title="3.1.·FileSystem·examples"
31 ·············accesskey="N">next</a>·|</li>31 ·············accesskey="N">next</a>·|</li>
32 ········<li·class="right"·>32 ········<li·class="right"·>
33 ··········<a·href="gettingstarted.html"·title="2.·Getting·Started"33 ··········<a·href="gettingstarted.html"·title="2.·Getting·Started"
34 ·············accesskey="P">previous</a>·|</li>34 ·············accesskey="P">previous</a>·|</li>
35 ········<li·class="nav-item·nav-item-0"><a·href="index.html">pyxrootd·current·documentation</a>·&#187;</li>35 ········<li·class="nav-item·nav-item-0"><a·href="index.html">pyxrootd·current·documentation</a>·&#187;</li>
36 ········<li·class="nav-item·nav-item-this"><a·href=""><strong>Examples</strong></a></li>·36 ········<li·class="nav-item·nav-item-this"><a·href=""><span·class="section-number">3.·</span><strong>Examples</strong></a></li>·
37 ······</ul>37 ······</ul>
38 ····</div>··38 ····</div>··
  
39 ····<div·class="document">39 ····<div·class="document">
40 ······<div·class="documentwrapper">40 ······<div·class="documentwrapper">
41 ········<div·class="bodywrapper">41 ········<div·class="bodywrapper">
42 ··········<div·class="body"·role="main">42 ··········<div·class="body"·role="main">
43 ············43 ············
44 ··<div·class="section"·id="examples">44 ··<div·class="section"·id="examples">
45 <h1><strong>Examples</strong><a·class="headerlink"·href="#examples"·title="Permalink·to·this·headline">¶</a></h1>45 <h1><span·class="section-number">3.·</span><strong>Examples</strong><a·class="headerlink"·href="#examples"·title="Permalink·to·this·headline">¶</a></h1>
46 <div·class="toctree-wrapper·compound">46 <div·class="toctree-wrapper·compound">
47 <ul>47 <ul>
48 <li·class="toctree-l1"><a·class="reference·internal"·href="examples/filesystem.html">1.·<code·class="docutils·literal·notranslate"><span·class="pre">FileSystem</span></code>·examples</a><ul>48 <li·class="toctree-l1"><a·class="reference·internal"·href="examples/filesystem.html">3.1.·<code·class="docutils·literal·notranslate"><span·class="pre">FileSystem</span></code>·examples</a><ul>
49 <li·class="toctree-l2"><a·class="reference·internal"·href="examples/filesystem.html#copy-a-file">1.1.·Copy·a·file</a></li>49 <li·class="toctree-l2"><a·class="reference·internal"·href="examples/filesystem.html#copy-a-file">3.1.1.·Copy·a·file</a></li>
50 <li·class="toctree-l2"><a·class="reference·internal"·href="examples/filesystem.html#ask-a-for-a-directory-listing">1.2.·Ask·a·for·a·directory·listing</a></li>50 <li·class="toctree-l2"><a·class="reference·internal"·href="examples/filesystem.html#ask-a-for-a-directory-listing">3.1.2.·Ask·a·for·a·directory·listing</a></li>
51 <li·class="toctree-l2"><a·class="reference·internal"·href="examples/filesystem.html#make-a-directory">1.3.·Make·a·directory</a></li>51 <li·class="toctree-l2"><a·class="reference·internal"·href="examples/filesystem.html#make-a-directory">3.1.3.·Make·a·directory</a></li>
52 <li·class="toctree-l2"><a·class="reference·internal"·href="examples/filesystem.html#delete-a-directory">1.4.·Delete·a·directory</a></li>52 <li·class="toctree-l2"><a·class="reference·internal"·href="examples/filesystem.html#delete-a-directory">3.1.4.·Delete·a·directory</a></li>
53 <li·class="toctree-l2"><a·class="reference·internal"·href="examples/filesystem.html#move-rename-a-file">1.5.·Move/rename·a·file</a></li>53 <li·class="toctree-l2"><a·class="reference·internal"·href="examples/filesystem.html#move-rename-a-file">3.1.5.·Move/rename·a·file</a></li>
54 <li·class="toctree-l2"><a·class="reference·internal"·href="examples/filesystem.html#delete-a-file">1.6.·Delete·a·file</a></li>54 <li·class="toctree-l2"><a·class="reference·internal"·href="examples/filesystem.html#delete-a-file">3.1.6.·Delete·a·file</a></li>
55 <li·class="toctree-l2"><a·class="reference·internal"·href="examples/filesystem.html#locate-a-file">1.7.·Locate·a·file</a></li>55 <li·class="toctree-l2"><a·class="reference·internal"·href="examples/filesystem.html#locate-a-file">3.1.7.·Locate·a·file</a></li>
56 <li·class="toctree-l2"><a·class="reference·internal"·href="examples/filesystem.html#ask-the-server-for-some-information">1.8.·Ask·the·server·for·some·information</a></li>56 <li·class="toctree-l2"><a·class="reference·internal"·href="examples/filesystem.html#ask-the-server-for-some-information">3.1.8.·Ask·the·server·for·some·information</a></li>
57 </ul>57 </ul>
58 </li>58 </li>
59 <li·class="toctree-l1"><a·class="reference·internal"·href="examples/file.html">2.·<code·class="docutils·literal·notranslate"><span·class="pre">File</span></code>·examples</a><ul>59 <li·class="toctree-l1"><a·class="reference·internal"·href="examples/file.html">3.2.·<code·class="docutils·literal·notranslate"><span·class="pre">File</span></code>·examples</a><ul>
60 <li·class="toctree-l2"><a·class="reference·internal"·href="examples/file.html#read-a-certain-amount-of-data-from-a-certain-offset-in-a-file">2.1.·Read·a·certain·amount·of·data·from·a·certain·offset·in·a·file</a></li>60 <li·class="toctree-l2"><a·class="reference·internal"·href="examples/file.html#read-a-certain-amount-of-data-from-a-certain-offset-in-a-file">3.2.1.·Read·a·certain·amount·of·data·from·a·certain·offset·in·a·file</a></li>
61 <li·class="toctree-l2"><a·class="reference·internal"·href="examples/file.html#write-a-chunk-of-data-to-a-file">2.2.·Write·a·chunk·of·data·to·a·file</a></li>61 <li·class="toctree-l2"><a·class="reference·internal"·href="examples/file.html#write-a-chunk-of-data-to-a-file">3.2.2.·Write·a·chunk·of·data·to·a·file</a></li>
62 <li·class="toctree-l2"><a·class="reference·internal"·href="examples/file.html#iterate-over-a-file-delimited-by-newline-characters">2.3.·Iterate·over·a·file,·delimited·by·newline·characters</a></li>62 <li·class="toctree-l2"><a·class="reference·internal"·href="examples/file.html#iterate-over-a-file-delimited-by-newline-characters">3.2.3.·Iterate·over·a·file,·delimited·by·newline·characters</a></li>
63 <li·class="toctree-l2"><a·class="reference·internal"·href="examples/file.html#read-all-lines-from-a-file-into-a-list">2.4.·Read·all·lines·from·a·file·into·a·list</a></li>63 <li·class="toctree-l2"><a·class="reference·internal"·href="examples/file.html#read-all-lines-from-a-file-into-a-list">3.2.4.·Read·all·lines·from·a·file·into·a·list</a></li>
64 <li·class="toctree-l2"><a·class="reference·internal"·href="examples/file.html#iterate-over-a-file-in-chunks-of-the-specified-size">2.5.·Iterate·over·a·file·in·chunks·of·the·specified·size</a></li>64 <li·class="toctree-l2"><a·class="reference·internal"·href="examples/file.html#iterate-over-a-file-in-chunks-of-the-specified-size">3.2.5.·Iterate·over·a·file·in·chunks·of·the·specified·size</a></li>
65 <li·class="toctree-l2"><a·class="reference·internal"·href="examples/file.html#read-scattered-data-chunks-in-one-operation">2.6.·Read·scattered·data·chunks·in·one·operation</a></li>65 <li·class="toctree-l2"><a·class="reference·internal"·href="examples/file.html#read-scattered-data-chunks-in-one-operation">3.2.6.·Read·scattered·data·chunks·in·one·operation</a></li>
66 </ul>66 </ul>
67 </li>67 </li>
68 <li·class="toctree-l1"><a·class="reference·internal"·href="examples/copyprocess.html">3.·<code·class="docutils·literal·notranslate"><span·class="pre">CopyProcess</span></code>·examples</a><ul>68 <li·class="toctree-l1"><a·class="reference·internal"·href="examples/copyprocess.html">3.3.·<code·class="docutils·literal·notranslate"><span·class="pre">CopyProcess</span></code>·examples</a><ul>
69 <li·class="toctree-l2"><a·class="reference·internal"·href="examples/copyprocess.html#add-a-number-of-copy-jobs-and-run-them-in-parallel-with-a-progress-handler">3.1.·Add·a·number·of·copy·jobs·and·run·them·in·parallel·with·a·progress·handler</a></li>69 <li·class="toctree-l2"><a·class="reference·internal"·href="examples/copyprocess.html#add-a-number-of-copy-jobs-and-run-them-in-parallel-with-a-progress-handler">3.3.1.·Add·a·number·of·copy·jobs·and·run·them·in·parallel·with·a·progress·handler</a></li>
70 </ul>70 </ul>
71 </li>71 </li>
72 </ul>72 </ul>
73 </div>73 </div>
74 </div>74 </div>
  
  
Offset 87, 15 lines modifiedOffset 87, 15 lines modified
87 ··············<img·class="logo"·src="_static/img/xrootd-200x68.png"·alt="Logo"/>87 ··············<img·class="logo"·src="_static/img/xrootd-200x68.png"·alt="Logo"/>
88 ············</a></p>88 ············</a></p>
89 ··<h4>Previous·topic</h4>89 ··<h4>Previous·topic</h4>
90 ··<p·class="topless"><a·href="gettingstarted.html"90 ··<p·class="topless"><a·href="gettingstarted.html"
91 ························title="previous·chapter"><span·class="section-number">2.·</span><strong>Getting·Started</strong></a></p>91 ························title="previous·chapter"><span·class="section-number">2.·</span><strong>Getting·Started</strong></a></p>
92 ··<h4>Next·topic</h4>92 ··<h4>Next·topic</h4>
93 ··<p·class="topless"><a·href="examples/filesystem.html"93 ··<p·class="topless"><a·href="examples/filesystem.html"
94 ························title="next·chapter"><span·class="section-number">1.·</span><code·class="docutils·literal·notranslate"><span·class="pre">FileSystem</span></code>·examples</a></p>94 ························title="next·chapter"><span·class="section-number">3.1.·</span><code·class="docutils·literal·notranslate"><span·class="pre">FileSystem</span></code>·examples</a></p>
95 ··<div·role="note"·aria-label="source·link">95 ··<div·role="note"·aria-label="source·link">
96 ····<h3>This·Page</h3>96 ····<h3>This·Page</h3>
97 ····<ul·class="this-page-menu">97 ····<ul·class="this-page-menu">
98 ······<li><a·href="_sources/examples.rst.txt"98 ······<li><a·href="_sources/examples.rst.txt"
99 ············rel="nofollow">Show·Source</a></li>99 ············rel="nofollow">Show·Source</a></li>
100 ····</ul>100 ····</ul>
101 ···</div>101 ···</div>
Offset 119, 21 lines modifiedOffset 119, 21 lines modified
119 ········<li·class="right"·style="margin-right:·10px">119 ········<li·class="right"·style="margin-right:·10px">
120 ··········<a·href="genindex.html"·title="General·Index"120 ··········<a·href="genindex.html"·title="General·Index"
121 ·············>index</a></li>121 ·············>index</a></li>
122 ········<li·class="right"·>122 ········<li·class="right"·>
123 ··········<a·href="py-modindex.html"·title="Python·Module·Index"123 ··········<a·href="py-modindex.html"·title="Python·Module·Index"
124 ·············>modules</a>·|</li>124 ·············>modules</a>·|</li>
125 ········<li·class="right"·>125 ········<li·class="right"·>
126 ··········<a·href="examples/filesystem.html"·title="1.·FileSystem·examples"126 ··········<a·href="examples/filesystem.html"·title="3.1.·FileSystem·examples"
127 ·············>next</a>·|</li>127 ·············>next</a>·|</li>
128 ········<li·class="right"·>128 ········<li·class="right"·>
129 ··········<a·href="gettingstarted.html"·title="2.·Getting·Started"129 ··········<a·href="gettingstarted.html"·title="2.·Getting·Started"
130 ·············>previous</a>·|</li>130 ·············>previous</a>·|</li>
131 ········<li·class="nav-item·nav-item-0"><a·href="index.html">pyxrootd·current·documentation</a>·&#187;</li>131 ········<li·class="nav-item·nav-item-0"><a·href="index.html">pyxrootd·current·documentation</a>·&#187;</li>
132 ········<li·class="nav-item·nav-item-this"><a·href=""><strong>Examples</strong></a></li>·132 ········<li·class="nav-item·nav-item-this"><a·href=""><span·class="section-number">3.·</span><strong>Examples</strong></a></li>·
133 ······</ul>133 ······</ul>
134 ····</div>134 ····</div>
135 ····<div·class="footer"·role="contentinfo">135 ····<div·class="footer"·role="contentinfo">
136 ········&#169;·Copyright·2020,·CERN.136 ········&#169;·Copyright·2020,·CERN.
137 ······Created·using·<a·href="https://www.sphinx-doc.org/">Sphinx</a>·3.4.3.137 ······Created·using·<a·href="https://www.sphinx-doc.org/">Sphinx</a>·3.4.3.
138 ····</div>138 ····</div>
139 ··</body>139 ··</body>
2.42 KB
html2text {}
    
Offset 9, 45 lines modifiedOffset 9, 46 lines modified
  
9 ****·Navigation·****9 ****·Navigation·****
10 ····*·index10 ····*·index
11 ····*·modules·|11 ····*·modules·|
12 ····*·next·|12 ····*·next·|
13 ····*·previous·|13 ····*·previous·|
14 ····*·pyxrootd_current_documentation·»14 ····*·pyxrootd_current_documentation·»
15 ····*·Examples15 ····*·3.·Examples
16 ******·Examples¶·******16 ******·3.·Examples¶·******
17 ····*·1._FileSystem_examples17 ····*·3.1._FileSystem_examples
18 ··········o·1.1._Copy_a_file18 ··········o·3.1.1._Copy_a_file
19 ··········o·1.2._Ask_a_for_a_directory_listing19 ··········o·3.1.2._Ask_a_for_a_directory_listing
20 ··········o·1.3._Make_a_directory20 ··········o·3.1.3._Make_a_directory
21 ··········o·1.4._Delete_a_directory21 ··········o·3.1.4._Delete_a_directory
22 ··········o·1.5._Move/rename_a_file22 ··········o·3.1.5._Move/rename_a_file
23 ··········o·1.6._Delete_a_file23 ··········o·3.1.6._Delete_a_file
24 ··········o·1.7._Locate_a_file24 ··········o·3.1.7._Locate_a_file
25 ··········o·1.8._Ask_the_server_for_some_information25 ··········o·3.1.8._Ask_the_server_for_some_information
26 ····*·2._File_examples26 ····*·3.2._File_examples
27 ··········o·2.1._Read_a_certain_amount_of_data_from_a_certain_offset_in_a_file27 ··········o·3.2.1._Read_a_certain_amount_of_data_from_a_certain_offset_in_a
 28 ············file
28 ··········o·2.2._Write_a_chunk_of_data_to_a_file29 ··········o·3.2.2._Write_a_chunk_of_data_to_a_file
29 ··········o·2.3._Iterate_over_a_file,_delimited_by_newline_characters30 ··········o·3.2.3._Iterate_over_a_file,_delimited_by_newline_characters
30 ··········o·2.4._Read_all_lines_from_a_file_into_a_list31 ··········o·3.2.4._Read_all_lines_from_a_file_into_a_list
31 ··········o·2.5._Iterate_over_a_file_in_chunks_of_the_specified_size32 ··········o·3.2.5._Iterate_over_a_file_in_chunks_of_the_specified_size
32 ··········o·2.6._Read_scattered_data_chunks_in_one_operation33 ··········o·3.2.6._Read_scattered_data_chunks_in_one_operation
33 ····*·3._CopyProcess_examples34 ····*·3.3._CopyProcess_examples
34 ··········o·3.1._Add_a_number_of_copy_jobs_and_run_them_in_parallel_with_a35 ··········o·3.3.1._Add_a_number_of_copy_jobs_and_run_them_in_parallel_with_a
35 ············progress_handler36 ············progress_handler
36 [Logo]37 [Logo]
37 ***·Previous·topic·***38 ***·Previous·topic·***
38 2._Getting_Started39 2._Getting_Started
39 ***·Next·topic·***40 ***·Next·topic·***
40 1._FileSystem_examples41 3.1._FileSystem_examples
41 ****·This·Page·****42 ****·This·Page·****
42 ····*·Show_Source43 ····*·Show_Source
43 ****·Quick·search·****44 ****·Quick·search·****
44 [q···················]·[Go]45 [q···················]·[Go]
45 ****·Navigation·****46 ****·Navigation·****
46 ····*·index47 ····*·index
47 ····*·modules·|48 ····*·modules·|
48 ····*·next·|49 ····*·next·|
49 ····*·previous·|50 ····*·previous·|
50 ····*·pyxrootd_current_documentation·»51 ····*·pyxrootd_current_documentation·»
51 ····*·Examples52 ····*·3.·Examples
52 ©·Copyright·2020,·CERN.·Created·using·Sphinx·3.4.3.53 ©·Copyright·2020,·CERN.·Created·using·Sphinx·3.4.3.
3.79 KB
./usr/share/doc/xrootd/python/gettingstarted.html
    
Offset 12, 28 lines modifiedOffset 12, 28 lines modified
12 ····<script·id="documentation_options"·data-url_root="./"·src="_static/documentation_options.js"></script>12 ····<script·id="documentation_options"·data-url_root="./"·src="_static/documentation_options.js"></script>
13 ····<script·src="_static/jquery.js"></script>13 ····<script·src="_static/jquery.js"></script>
14 ····<script·src="_static/underscore.js"></script>14 ····<script·src="_static/underscore.js"></script>
15 ····<script·src="_static/doctools.js"></script>15 ····<script·src="_static/doctools.js"></script>
16 ····<link·rel="shortcut·icon"·href="_static/img/favicon.ico?v=2"/>16 ····<link·rel="shortcut·icon"·href="_static/img/favicon.ico?v=2"/>
17 ····<link·rel="index"·title="Index"·href="genindex.html"·/>17 ····<link·rel="index"·title="Index"·href="genindex.html"·/>
18 ····<link·rel="search"·title="Search"·href="search.html"·/>18 ····<link·rel="search"·title="Search"·href="search.html"·/>
19 ····<link·rel="next"·title="Examples"·href="examples.html"·/>19 ····<link·rel="next"·title="3.·Examples"·href="examples.html"·/>
20 ····<link·rel="prev"·title="1.·Installing·pyxrootd"·href="install.html"·/>·20 ····<link·rel="prev"·title="1.·Installing·pyxrootd"·href="install.html"·/>·
21 ··</head><body>21 ··</head><body>
22 ····<div·class="related"·role="navigation"·aria-label="related·navigation">22 ····<div·class="related"·role="navigation"·aria-label="related·navigation">
23 ······<h3>Navigation</h3>23 ······<h3>Navigation</h3>
24 ······<ul>24 ······<ul>
25 ········<li·class="right"·style="margin-right:·10px">25 ········<li·class="right"·style="margin-right:·10px">
26 ··········<a·href="genindex.html"·title="General·Index"26 ··········<a·href="genindex.html"·title="General·Index"
27 ·············accesskey="I">index</a></li>27 ·············accesskey="I">index</a></li>
28 ········<li·class="right"·>28 ········<li·class="right"·>
29 ··········<a·href="py-modindex.html"·title="Python·Module·Index"29 ··········<a·href="py-modindex.html"·title="Python·Module·Index"
30 ·············>modules</a>·|</li>30 ·············>modules</a>·|</li>
31 ········<li·class="right"·>31 ········<li·class="right"·>
32 ··········<a·href="examples.html"·title="Examples"32 ··········<a·href="examples.html"·title="3.·Examples"
33 ·············accesskey="N">next</a>·|</li>33 ·············accesskey="N">next</a>·|</li>
34 ········<li·class="right"·>34 ········<li·class="right"·>
35 ··········<a·href="install.html"·title="1.·Installing·pyxrootd"35 ··········<a·href="install.html"·title="1.·Installing·pyxrootd"
36 ·············accesskey="P">previous</a>·|</li>36 ·············accesskey="P">previous</a>·|</li>
37 ········<li·class="nav-item·nav-item-0"><a·href="index.html">pyxrootd·current·documentation</a>·&#187;</li>37 ········<li·class="nav-item·nav-item-0"><a·href="index.html">pyxrootd·current·documentation</a>·&#187;</li>
38 ········<li·class="nav-item·nav-item-this"><a·href=""><span·class="section-number">2.·</span><strong>Getting·Started</strong></a></li>·38 ········<li·class="nav-item·nav-item-this"><a·href=""><span·class="section-number">2.·</span><strong>Getting·Started</strong></a></li>·
39 ······</ul>39 ······</ul>
Offset 151, 15 lines modifiedOffset 151, 15 lines modified
151 </ul>151 </ul>
  
152 ··<h4>Previous·topic</h4>152 ··<h4>Previous·topic</h4>
153 ··<p·class="topless"><a·href="install.html"153 ··<p·class="topless"><a·href="install.html"
154 ························title="previous·chapter"><span·class="section-number">1.·</span><strong>Installing</strong>·<code·class="docutils·literal·notranslate"><span·class="pre">pyxrootd</span></code></a></p>154 ························title="previous·chapter"><span·class="section-number">1.·</span><strong>Installing</strong>·<code·class="docutils·literal·notranslate"><span·class="pre">pyxrootd</span></code></a></p>
155 ··<h4>Next·topic</h4>155 ··<h4>Next·topic</h4>
156 ··<p·class="topless"><a·href="examples.html"156 ··<p·class="topless"><a·href="examples.html"
157 ························title="next·chapter"><strong>Examples</strong></a></p>157 ························title="next·chapter"><span·class="section-number">3.·</span><strong>Examples</strong></a></p>
158 ··<div·role="note"·aria-label="source·link">158 ··<div·role="note"·aria-label="source·link">
159 ····<h3>This·Page</h3>159 ····<h3>This·Page</h3>
160 ····<ul·class="this-page-menu">160 ····<ul·class="this-page-menu">
161 ······<li><a·href="_sources/gettingstarted.rst.txt"161 ······<li><a·href="_sources/gettingstarted.rst.txt"
162 ············rel="nofollow">Show·Source</a></li>162 ············rel="nofollow">Show·Source</a></li>
163 ····</ul>163 ····</ul>
164 ···</div>164 ···</div>
Offset 183, 15 lines modifiedOffset 183, 15 lines modified
183 ········<li·class="right"·style="margin-right:·10px">183 ········<li·class="right"·style="margin-right:·10px">
184 ··········<a·href="genindex.html"·title="General·Index"184 ··········<a·href="genindex.html"·title="General·Index"
185 ·············>index</a></li>185 ·············>index</a></li>
186 ········<li·class="right"·>186 ········<li·class="right"·>
187 ··········<a·href="py-modindex.html"·title="Python·Module·Index"187 ··········<a·href="py-modindex.html"·title="Python·Module·Index"
188 ·············>modules</a>·|</li>188 ·············>modules</a>·|</li>
189 ········<li·class="right"·>189 ········<li·class="right"·>
190 ··········<a·href="examples.html"·title="Examples"190 ··········<a·href="examples.html"·title="3.·Examples"
191 ·············>next</a>·|</li>191 ·············>next</a>·|</li>
192 ········<li·class="right"·>192 ········<li·class="right"·>
193 ··········<a·href="install.html"·title="1.·Installing·pyxrootd"193 ··········<a·href="install.html"·title="1.·Installing·pyxrootd"
194 ·············>previous</a>·|</li>194 ·············>previous</a>·|</li>
195 ········<li·class="nav-item·nav-item-0"><a·href="index.html">pyxrootd·current·documentation</a>·&#187;</li>195 ········<li·class="nav-item·nav-item-0"><a·href="index.html">pyxrootd·current·documentation</a>·&#187;</li>
196 ········<li·class="nav-item·nav-item-this"><a·href=""><span·class="section-number">2.·</span><strong>Getting·Started</strong></a></li>·196 ········<li·class="nav-item·nav-item-this"><a·href=""><span·class="section-number">2.·</span><strong>Getting·Started</strong></a></li>·
197 ······</ul>197 ······</ul>
458 B
html2text {}
    
Offset 79, 15 lines modifiedOffset 79, 15 lines modified
79 ······················#·2.1.2.1._Synchronous_requests79 ······················#·2.1.2.1._Synchronous_requests
80 ······················#·2.1.2.2._Asynchronous_requests80 ······················#·2.1.2.2._Asynchronous_requests
81 ················#·2.1.3._Timeouts81 ················#·2.1.3._Timeouts
82 ··········o·2.2._Copying_files82 ··········o·2.2._Copying_files
83 ***·Previous·topic·***83 ***·Previous·topic·***
84 1._Installing_pyxrootd84 1._Installing_pyxrootd
85 ***·Next·topic·***85 ***·Next·topic·***
86 Examples86 3._Examples
87 ****·This·Page·****87 ****·This·Page·****
88 ····*·Show_Source88 ····*·Show_Source
89 ****·Quick·search·****89 ****·Quick·search·****
90 [q···················]·[Go]90 [q···················]·[Go]
91 ****·Navigation·****91 ****·Navigation·****
92 ····*·index92 ····*·index
93 ····*·modules·|93 ····*·modules·|
3.22 KB
./usr/share/doc/xrootd/python/index.html
    
Offset 54, 18 lines modifiedOffset 54, 18 lines modified
54 <ul>54 <ul>
55 <li·class="toctree-l1"><a·class="reference·internal"·href="install.html">1.·<strong>Installing</strong>·<code·class="docutils·literal·notranslate"><span·class="pre">pyxrootd</span></code></a></li>55 <li·class="toctree-l1"><a·class="reference·internal"·href="install.html">1.·<strong>Installing</strong>·<code·class="docutils·literal·notranslate"><span·class="pre">pyxrootd</span></code></a></li>
56 <li·class="toctree-l1"><a·class="reference·internal"·href="gettingstarted.html">2.·<strong>Getting·Started</strong></a><ul>56 <li·class="toctree-l1"><a·class="reference·internal"·href="gettingstarted.html">2.·<strong>Getting·Started</strong></a><ul>
57 <li·class="toctree-l2"><a·class="reference·internal"·href="gettingstarted.html#file-and-filesystem-usage">2.1.·<code·class="docutils·literal·notranslate"><span·class="pre">File</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">FileSystem</span></code>·usage</a></li>57 <li·class="toctree-l2"><a·class="reference·internal"·href="gettingstarted.html#file-and-filesystem-usage">2.1.·<code·class="docutils·literal·notranslate"><span·class="pre">File</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">FileSystem</span></code>·usage</a></li>
58 <li·class="toctree-l2"><a·class="reference·internal"·href="gettingstarted.html#copying-files">2.2.·Copying·files</a></li>58 <li·class="toctree-l2"><a·class="reference·internal"·href="gettingstarted.html#copying-files">2.2.·Copying·files</a></li>
59 </ul>59 </ul>
60 </li>60 </li>
61 <li·class="toctree-l1"><a·class="reference·internal"·href="examples.html"><strong>Examples</strong></a><ul>61 <li·class="toctree-l1"><a·class="reference·internal"·href="examples.html">3.·<strong>Examples</strong></a><ul>
62 <li·class="toctree-l2"><a·class="reference·internal"·href="examples/filesystem.html">1.·<code·class="docutils·literal·notranslate"><span·class="pre">FileSystem</span></code>·examples</a></li>62 <li·class="toctree-l2"><a·class="reference·internal"·href="examples/filesystem.html">3.1.·<code·class="docutils·literal·notranslate"><span·class="pre">FileSystem</span></code>·examples</a></li>
63 <li·class="toctree-l2"><a·class="reference·internal"·href="examples/file.html">2.·<code·class="docutils·literal·notranslate"><span·class="pre">File</span></code>·examples</a></li>63 <li·class="toctree-l2"><a·class="reference·internal"·href="examples/file.html">3.2.·<code·class="docutils·literal·notranslate"><span·class="pre">File</span></code>·examples</a></li>
64 <li·class="toctree-l2"><a·class="reference·internal"·href="examples/copyprocess.html">3.·<code·class="docutils·literal·notranslate"><span·class="pre">CopyProcess</span></code>·examples</a></li>64 <li·class="toctree-l2"><a·class="reference·internal"·href="examples/copyprocess.html">3.3.·<code·class="docutils·literal·notranslate"><span·class="pre">CopyProcess</span></code>·examples</a></li>
65 </ul>65 </ul>
66 </li>66 </li>
67 </ul>67 </ul>
68 </div>68 </div>
69 </div>69 </div>
70 <div·class="section"·id="api-reference">70 <div·class="section"·id="api-reference">
71 <h2>API·Reference<a·class="headerlink"·href="#api-reference"·title="Permalink·to·this·headline">¶</a></h2>71 <h2>API·Reference<a·class="headerlink"·href="#api-reference"·title="Permalink·to·this·headline">¶</a></h2>
887 B
html2text {}
    
Offset 19, 18 lines modifiedOffset 19, 18 lines modified
19 For·bug·reporting·and·issue·tracking,·please·see·the_pyxrootd_github_issue19 For·bug·reporting·and·issue·tracking,·please·see·the_pyxrootd_github_issue
20 tracker20 tracker
21 *****·User·Guide¶·*****21 *****·User·Guide¶·*****
22 ····*·1._Installing_pyxrootd22 ····*·1._Installing_pyxrootd
23 ····*·2._Getting_Started23 ····*·2._Getting_Started
24 ··········o·2.1._File_and_FileSystem_usage24 ··········o·2.1._File_and_FileSystem_usage
25 ··········o·2.2._Copying_files25 ··········o·2.2._Copying_files
26 ····*·Examples26 ····*·3._Examples
27 ··········o·1._FileSystem_examples27 ··········o·3.1._FileSystem_examples
28 ··········o·2._File_examples28 ··········o·3.2._File_examples
29 ··········o·3._CopyProcess_examples29 ··········o·3.3._CopyProcess_examples
30 *****·API·Reference¶·*****30 *****·API·Reference¶·*****
31 ····*·1._XRootD.client.FileSystem:_Filesystem-based_operations31 ····*·1._XRootD.client.FileSystem:_Filesystem-based_operations
32 ····*·2._XRootD.client.File:_File-based_operations32 ····*·2._XRootD.client.File:_File-based_operations
33 ····*·3._XRootD.client.CopyProcess:_Copying_files33 ····*·3._XRootD.client.CopyProcess:_Copying_files
34 ····*·4._XRootD.client.responses:_Server_response_objects34 ····*·4._XRootD.client.responses:_Server_response_objects
35 ····*·5._XRootD.client.flags:_Flags_and_constants35 ····*·5._XRootD.client.flags:_Flags_and_constants
36 ····*·6._XRootD.client.URL:_XRootD_URL_object36 ····*·6._XRootD.client.URL:_XRootD_URL_object
4.46 KB
./usr/share/doc/xrootd/python/modules/client/filesystem.html
    
Offset 13, 30 lines modifiedOffset 13, 30 lines modified
13 ····<script·src="../../_static/jquery.js"></script>13 ····<script·src="../../_static/jquery.js"></script>
14 ····<script·src="../../_static/underscore.js"></script>14 ····<script·src="../../_static/underscore.js"></script>
15 ····<script·src="../../_static/doctools.js"></script>15 ····<script·src="../../_static/doctools.js"></script>
16 ····<link·rel="shortcut·icon"·href="../../_static/img/favicon.ico?v=2"/>16 ····<link·rel="shortcut·icon"·href="../../_static/img/favicon.ico?v=2"/>
17 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>17 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>
18 ····<link·rel="search"·title="Search"·href="../../search.html"·/>18 ····<link·rel="search"·title="Search"·href="../../search.html"·/>
19 ····<link·rel="next"·title="2.·XRootD.client.File:·File-based·operations"·href="file.html"·/>19 ····<link·rel="next"·title="2.·XRootD.client.File:·File-based·operations"·href="file.html"·/>
20 ····<link·rel="prev"·title="3.·CopyProcess·examples"·href="../../examples/copyprocess.html"·/>·20 ····<link·rel="prev"·title="3.3.·CopyProcess·examples"·href="../../examples/copyprocess.html"·/>·
21 ··</head><body>21 ··</head><body>
22 ····<div·class="related"·role="navigation"·aria-label="related·navigation">22 ····<div·class="related"·role="navigation"·aria-label="related·navigation">
23 ······<h3>Navigation</h3>23 ······<h3>Navigation</h3>
24 ······<ul>24 ······<ul>
25 ········<li·class="right"·style="margin-right:·10px">25 ········<li·class="right"·style="margin-right:·10px">
26 ··········<a·href="../../genindex.html"·title="General·Index"26 ··········<a·href="../../genindex.html"·title="General·Index"
27 ·············accesskey="I">index</a></li>27 ·············accesskey="I">index</a></li>
28 ········<li·class="right"·>28 ········<li·class="right"·>
29 ··········<a·href="../../py-modindex.html"·title="Python·Module·Index"29 ··········<a·href="../../py-modindex.html"·title="Python·Module·Index"
30 ·············>modules</a>·|</li>30 ·············>modules</a>·|</li>
31 ········<li·class="right"·>31 ········<li·class="right"·>
32 ··········<a·href="file.html"·title="2.·XRootD.client.File:·File-based·operations"32 ··········<a·href="file.html"·title="2.·XRootD.client.File:·File-based·operations"
33 ·············accesskey="N">next</a>·|</li>33 ·············accesskey="N">next</a>·|</li>
34 ········<li·class="right"·>34 ········<li·class="right"·>
35 ··········<a·href="../../examples/copyprocess.html"·title="3.·CopyProcess·examples"35 ··········<a·href="../../examples/copyprocess.html"·title="3.3.·CopyProcess·examples"
36 ·············accesskey="P">previous</a>·|</li>36 ·············accesskey="P">previous</a>·|</li>
37 ········<li·class="nav-item·nav-item-0"><a·href="../../index.html">pyxrootd·current·documentation</a>·&#187;</li>37 ········<li·class="nav-item·nav-item-0"><a·href="../../index.html">pyxrootd·current·documentation</a>·&#187;</li>
38 ········<li·class="nav-item·nav-item-this"><a·href=""><span·class="section-number">1.·</span><code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">XRootD.client.FileSystem</span></code>:·Filesystem-based·operations</a></li>·38 ········<li·class="nav-item·nav-item-this"><a·href=""><span·class="section-number">1.·</span><code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">XRootD.client.FileSystem</span></code>:·Filesystem-based·operations</a></li>·
39 ······</ul>39 ······</ul>
40 ····</div>··40 ····</div>··
  
41 ····<div·class="document">41 ····<div·class="document">
Offset 437, 15 lines modifiedOffset 437, 15 lines modified
437 </li>437 </li>
438 </ul>438 </ul>
439 </li>439 </li>
440 </ul>440 </ul>
  
441 ··<h4>Previous·topic</h4>441 ··<h4>Previous·topic</h4>
442 ··<p·class="topless"><a·href="../../examples/copyprocess.html"442 ··<p·class="topless"><a·href="../../examples/copyprocess.html"
443 ························title="previous·chapter"><span·class="section-number">3.·</span><code·class="docutils·literal·notranslate"><span·class="pre">CopyProcess</span></code>·examples</a></p>443 ························title="previous·chapter"><span·class="section-number">3.3.·</span><code·class="docutils·literal·notranslate"><span·class="pre">CopyProcess</span></code>·examples</a></p>
444 ··<h4>Next·topic</h4>444 ··<h4>Next·topic</h4>
445 ··<p·class="topless"><a·href="file.html"445 ··<p·class="topless"><a·href="file.html"
446 ························title="next·chapter"><span·class="section-number">2.·</span><code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">XRootD.client.File</span></code>:·File-based·operations</a></p>446 ························title="next·chapter"><span·class="section-number">2.·</span><code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">XRootD.client.File</span></code>:·File-based·operations</a></p>
447 ··<div·role="note"·aria-label="source·link">447 ··<div·role="note"·aria-label="source·link">
448 ····<h3>This·Page</h3>448 ····<h3>This·Page</h3>
449 ····<ul·class="this-page-menu">449 ····<ul·class="this-page-menu">
450 ······<li><a·href="../../_sources/modules/client/filesystem.rst.txt"450 ······<li><a·href="../../_sources/modules/client/filesystem.rst.txt"
Offset 475, 15 lines modifiedOffset 475, 15 lines modified
475 ········<li·class="right"·>475 ········<li·class="right"·>
476 ··········<a·href="../../py-modindex.html"·title="Python·Module·Index"476 ··········<a·href="../../py-modindex.html"·title="Python·Module·Index"
477 ·············>modules</a>·|</li>477 ·············>modules</a>·|</li>
478 ········<li·class="right"·>478 ········<li·class="right"·>
479 ··········<a·href="file.html"·title="2.·XRootD.client.File:·File-based·operations"479 ··········<a·href="file.html"·title="2.·XRootD.client.File:·File-based·operations"
480 ·············>next</a>·|</li>480 ·············>next</a>·|</li>
481 ········<li·class="right"·>481 ········<li·class="right"·>
482 ··········<a·href="../../examples/copyprocess.html"·title="3.·CopyProcess·examples"482 ··········<a·href="../../examples/copyprocess.html"·title="3.3.·CopyProcess·examples"
483 ·············>previous</a>·|</li>483 ·············>previous</a>·|</li>
484 ········<li·class="nav-item·nav-item-0"><a·href="../../index.html">pyxrootd·current·documentation</a>·&#187;</li>484 ········<li·class="nav-item·nav-item-0"><a·href="../../index.html">pyxrootd·current·documentation</a>·&#187;</li>
485 ········<li·class="nav-item·nav-item-this"><a·href=""><span·class="section-number">1.·</span><code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">XRootD.client.FileSystem</span></code>:·Filesystem-based·operations</a></li>·485 ········<li·class="nav-item·nav-item-this"><a·href=""><span·class="section-number">1.·</span><code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">XRootD.client.FileSystem</span></code>:·Filesystem-based·operations</a></li>·
486 ······</ul>486 ······</ul>
487 ····</div>487 ····</div>
488 ····<div·class="footer"·role="contentinfo">488 ····<div·class="footer"·role="contentinfo">
489 ········&#169;·Copyright·2020,·CERN.489 ········&#169;·Copyright·2020,·CERN.
509 B
html2text {}
    
Offset 193, 15 lines modifiedOffset 193, 15 lines modified
193 [Logo]193 [Logo]
194 ****·Table_of_Contents·****194 ****·Table_of_Contents·****
195 ····*·1._XRootD.client.FileSystem:_Filesystem-based_operations195 ····*·1._XRootD.client.FileSystem:_Filesystem-based_operations
196 ··········o·1.1._Class_Reference196 ··········o·1.1._Class_Reference
197 ················#·1.1.1._Attributes197 ················#·1.1.1._Attributes
198 ················#·1.1.2._Methods198 ················#·1.1.2._Methods
199 ***·Previous·topic·***199 ***·Previous·topic·***
200 3._CopyProcess_examples200 3.3._CopyProcess_examples
201 ***·Next·topic·***201 ***·Next·topic·***
202 2._XRootD.client.File:_File-based_operations202 2._XRootD.client.File:_File-based_operations
203 ****·This·Page·****203 ****·This·Page·****
204 ····*·Show_Source204 ····*·Show_Source
205 ****·Quick·search·****205 ****·Quick·search·****
206 [q···················]·[Go]206 [q···················]·[Go]
207 ****·Navigation·****207 ****·Navigation·****
4.56 KB
./usr/share/doc/xrootd/python/searchindex.js
4.47 KB
js-beautify {}
    
Offset 767, 15 lines modifiedOffset 767, 15 lines modified
767 ········yes:·7,767 ········yes:·7,
768 ········yet:·10,768 ········yet:·10,
769 ········you:·[3,·4,·6,·7,·8,·9,·11,·13],769 ········you:·[3,·4,·6,·7,·8,·9,·11,·13],
770 ········your:·[4,·6,·7,·8],770 ········your:·[4,·6,·7,·8],
771 ········yourself:·13,771 ········yourself:·13,
772 ········zyx:·6772 ········zyx:·6
773 ····},773 ····},
774 ····titles:·["<strong>Examples</strong>",·"<span·class=\"section-number\">3.·</span><code·class=\"docutils·literal·notranslate\"><span·class=\"pre\">CopyProcess</span></code>·examples",·"<span·class=\"section-number\">2.·</span><code·class=\"docutils·literal·notranslate\"[·...·truncated·by·diffoscope;·len:·83,·SHA:·c6e846ab559195963114d1af5e37f0375412069f53128e43269515171513a44f·...·]1.·</span><code·class=\"docutils·literal·notranslate\"><span·class=\"pre\">FileSystem</span></code>·examples",·"<span·class=\"section-number\">2.·</span><strong>Getting·Started</strong>",·"<code·class=\"docutils·literal·notranslate\"><span·class=\"pre\">pyxrootd</span></code>:·Python·bindings·for·XRootD",·"<span·class=\"section-number\">1.·</span><strong>Installing</strong>·<code·class=\"docutils·literal·notranslate\"><span·class=\"pre\">pyxrootd</span></code>",·"<span·class=\"section-number\">3.·</span><code·class=\"xref·py·py-mod·docutils·literal·notranslate\"><span·class=\"pre\">XRootD.client.CopyProcess</span></code>:·Copying·files",·"<span·class=\"section-number\">2.·</span><code·class=\"xref·py·py-mod·docutils·literal·notranslate\"><span·class=\"pre\">XRootD.client.File</span></code>:·File-based·operations",·"<span·class=\"section-number\">1.·</span><code·class=\"xref·py·py-mod·docutils·literal·notranslate\"><span·class=\"pre\">XRootD.client.FileSystem</span></code>:·Filesystem-based·operations",·"<span·class=\"section-number\">5.·</span><code·class=\"xref·py·py-mod·docutils·literal·notranslate\"><span·class=\"pre\">XRootD.client.flags</span></code>:·Flags·and·constants",·"<span·class=\"section-number\">4.·</span><code·class=\"xref·py·py-mod·docutils·literal·notranslate\"><span·class=\"pre\">XRootD.client.responses</span></code>:·Server·response·objects",·"<span·class=\"section-number\">6.·</span><code·class=\"xref·py·py-mod·docutils·literal·notranslate\"><span·class=\"pre\">XRootD.client.URL</span></code>:·XRootD·URL·object",·"<span·class=\"section-number\">7.·</span><code·class=\"xref·py·py-mod·docutils·literal·notranslate\"><span·class=\"pre\">XRootD.client.utils</span></code>:·Utility·classes"],774 ····titles:·["<span·class=\"section-number\">3.·</span><strong>Examples</strong>",·"<span·class=\"section-number\">3.3.·</span><code·class=\"docutils·literal·notranslate\"><span·class=\"pre\">CopyProcess</span></code>·examples",·"<span·class=\"section-number\">3.2.·</span[·...·truncated·by·diffoscope;·len:·130,·SHA:·b23a4304dbb86082f4a4a40fdb90e255003e4bf39f273586be41656b7503a9a2·...·]1.·</span><code·class=\"docutils·literal·notranslate\"><span·class=\"pre\">FileSystem</span></code>·examples",·"<span·class=\"section-number\">2.·</span><strong>Getting·Started</strong>",·"<code·class=\"docutils·literal·notranslate\"><span·class=\"pre\">pyxrootd</span></code>:·Python·bindings·for·XRootD",·"<span·class=\"section-number\">1.·</span><strong>Installing</strong>·<code·class=\"docutils·literal·notranslate\"><span·class=\"pre\">pyxrootd</span></code>",·"<span·class=\"section-number\">3.·</span><code·class=\"xref·py·py-mod·docutils·literal·notranslate\"><span·class=\"pre\">XRootD.client.CopyProcess</span></code>:·Copying·files",·"<span·class=\"section-number\">2.·</span><code·class=\"xref·py·py-mod·docutils·literal·notranslate\"><span·class=\"pre\">XRootD.client.File</span></code>:·File-based·operations",·"<span·class=\"section-number\">1.·</span><code·class=\"xref·py·py-mod·docutils·literal·notranslate\"><span·class=\"pre\">XRootD.client.FileSystem</span></code>:·Filesystem-based·operations",·"<span·class=\"section-number\">5.·</span><code·class=\"xref·py·py-mod·docutils·literal·notranslate\"><span·class=\"pre\">XRootD.client.flags</span></code>:·Flags·and·constants",·"<span·class=\"section-number\">4.·</span><code·class=\"xref·py·py-mod·docutils·literal·notranslate\"><span·class=\"pre\">XRootD.client.responses</span></code>:·Server·response·objects",·"<span·class=\"section-number\">6.·</span><code·class=\"xref·py·py-mod·docutils·literal·notranslate\"><span·class=\"pre\">XRootD.client.URL</span></code>:·XRootD·URL·object",·"<span·class=\"section-number\">7.·</span><code·class=\"xref·py·py-mod·docutils·literal·notranslate\"><span·class=\"pre\">XRootD.client.utils</span></code>:·Utility·classes"],
775 ····titleterms:·{775 ····titleterms:·{
776 ········"class":·[7,·8,·9,·12,·13],776 ········"class":·[7,·8,·9,·12,·13],
777 ········"return":·4,777 ········"return":·4,
778 ········add:·1,778 ········add:·1,
779 ········all:·2,779 ········all:·2,
780 ········amount:·2,780 ········amount:·2,
781 ········api:·5,781 ········api:·5,