Offset 29, 15 lines modified | Offset 29, 15 lines modified | ||
29 | ·693e4e7d6b1b15ff9126b2f5a1f3f56b·44596·libdevel·optional·libxrootd-server-dev_5.0.3-4_amd64.deb | 29 | ·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.deb | 30 | ·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.deb | 31 | ·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.deb | 32 | ·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.deb | 33 | ·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.deb | 34 | ·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.deb | 35 | ·14cefde5648d428aae4785de98e5140c·113444·net·optional·xrootd-client_5.0.3-4_amd64.deb |
36 | ·d | 36 | ·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.deb | 37 | ·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.deb | 38 | ·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.deb | 39 | ·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.deb | 40 | ·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.deb | 41 | ·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.deb | 42 | ·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.deb | 43 | ·efc22e14fab0fa2363774126a3a7f28e·240860·libs·optional·xrootd-server-plugins_5.0.3-4_amd64.deb |
Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | -rw-r--r--···0········0········0········4·2020-12-19·18:58:41.000000·debian-binary | 1 | -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.xz | 2 | -rw-r--r--···0········0········0···246624·2020-12-19·18:58:41.000000·control.tar.xz |
3 | -rw-r--r--···0········0········0·740246 | 3 | -rw-r--r--···0········0········0·74024652·2020-12-19·18:58:41.000000·data.tar.xz |
Offset 1, 13 lines modified | Offset 1, 13 lines modified | ||
1 | Package:·xrootd-doc | 1 | Package:·xrootd-doc |
2 | Source:·xrootd | 2 | Source:·xrootd |
3 | Version:·5.0.3-4 | 3 | Version:·5.0.3-4 |
4 | Architecture:·all | 4 | Architecture:·all |
5 | Maintainer:·Mattias·Ellert·<mattias.ellert@physics.uu.se> | 5 | Maintainer:·Mattias·Ellert·<mattias.ellert@physics.uu.se> |
6 | Installed-Size:·16857 | 6 | 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:·doc | 9 | Section:·doc |
10 | Priority:·optional | 10 | Priority:·optional |
11 | Multi-Arch:·foreign | 11 | Multi-Arch:·foreign |
12 | Homepage:·http://xrootd.org/ | 12 | Homepage:·http://xrootd.org/ |
13 | Description:·Developer·documentation·for·the·xrootd·libraries | 13 | Description:·Developer·documentation·for·the·xrootd·libraries |
Offset 12257, 35 lines modified | Offset 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.gz | 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.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.png | 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.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.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.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.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.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.css | 12262 | -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)····15 | 12264 | -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)····20 | 12265 | -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)····17 | 12266 | -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)····· | 12267 | -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.html | 12268 | -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)····14 | 12269 | -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)·····891 | 12270 | -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.html | 12271 | -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.html | 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.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.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.html |
12276 | -rw-r--r--···0·root·········(0)·root·········(0)····413 | 12276 | -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.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.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.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.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.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.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.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.html |
12281 | -rw-r--r--···0·root·········(0)·root·········(0)·····1096·2020-12-19·18:58:41.000000·./usr/share/doc/xrootd/python/objects.inv | 12281 | -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.html | 12282 | -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.html | 12283 | -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)····141 | 12284 | -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.gz | 12286 | -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/copyright | 12287 | -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.js | 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.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.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.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.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.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.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.js |
Offset 1, 58 lines modified | Offset 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·—·pyxrootd·current·documentation</title> | 6 | ····<title>3.3.·CopyProcess·examples·—·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>·»</li> | 35 | ········<li·class="nav-item·nav-item-0"><a·href="../index.html">pyxrootd·current·documentation</a>·»</li> |
36 | ··········<li·class="nav-item·nav-item-1"><a·href="../examples.html"·accesskey="U"><strong>Examples</strong></a>·»</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>·»</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">'id:·</span><span·class="si">%d</span><span·class="s1">,·total:·</span><span·class="si">%d</span><span·class="s1">'</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">'id:·</span><span·class="si">%d</span><span·class="s1">,·total:·</span><span·class="si">%d</span><span·class="s1">'</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">'source:·</span><span·class="si">%s</span><span·class="s1">'</span>·<span·class="o">%</span>·<span·class="n">source</span> | 53 | ····<span·class="nb">print</span>·<span·class="s1">'source:·</span><span·class="si">%s</span><span·class="s1">'</span>·<span·class="o">%</span>·<span·class="n">source</span> |
54 | ····<span·class="nb">print</span>·<span·class="s1">'target:·</span><span·class="si">%s</span><span·class="s1">'</span>·<span·class="o">%</span>·<span·class="n">target</span> | 54 | ····<span·class="nb">print</span>·<span·class="s1">'target:·</span><span·class="si">%s</span><span·class="s1">'</span>·<span·class="o">%</span>·<span·class="n">target</span> |
Offset 116, 23 lines modified | Offset 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 modified | Offset 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>·»</li> | 171 | ········<li·class="nav-item·nav-item-0"><a·href="../index.html">pyxrootd·current·documentation</a>·»</li> |
172 | ··········<li·class="nav-item·nav-item-1"><a·href="../examples.html"·><strong>Examples</strong></a>·»</li> | 172 | ··········<li·class="nav-item·nav-item-1"><a·href="../examples.html"·><span·class="section-number">3.·</span><strong>Examples</strong></a>·»</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 | ········©·Copyright·2020,·CERN. | 177 | ········©·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> |
Offset 9, 18 lines modified | Offset 9, 18 lines modified | ||
9 | ****·Navigation·**** | 9 | ****·Navigation·**** |
10 | ····*·index | 10 | ····*·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·examples | 16 | ····*·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·progress | 18 | *****·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·client | 20 | 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'·%·source | 24 | ····print·'source:·%s'·%·source |
Offset 68, 27 lines modified | Offset 68, 27 lines modified | ||
68 | id:·4,·total:·4 | 68 | id:·4,·total:·4 |
69 | source:·root://localhost//tmp/spam | 69 | source:·root://localhost//tmp/spam |
70 | target:·root://localhost//tmp/spam4 | 70 | target:·root://localhost//tmp/spam4 |
71 | processed:·20,·total:·20 | 71 | 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_examples | 75 | ····*·3.3._CopyProcess_examples |
76 | ··········o·3.1._Add_a_number_of_copy_jobs_and_run_them_in_parallel_with_a | 76 | ··········o·3.3.1._Add_a_number_of_copy_jobs_and_run_them_in_parallel_with_a |
77 | ············progress_handler | 77 | ············progress_handler |
78 | ***·Previous·topic·*** | 78 | ***·Previous·topic·*** |
79 | 2._File_examples | 79 | 3.2._File_examples |
80 | ***·Next·topic·*** | 80 | ***·Next·topic·*** |
81 | 1._XRootD.client.FileSystem:_Filesystem-based_operations | 81 | 1._XRootD.client.FileSystem:_Filesystem-based_operations |
82 | ****·This·Page·**** | 82 | ****·This·Page·**** |
83 | ····*·Show_Source | 83 | ····*·Show_Source |
84 | ****·Quick·search·**** | 84 | ****·Quick·search·**** |
85 | [q···················]·[Go] | 85 | [q···················]·[Go] |
86 | ****·Navigation·**** | 86 | ****·Navigation·**** |
87 | ····*·index | 87 | ····*·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·examples | 93 | ····*·3.3.·CopyProcess·examples |
94 | ©·Copyright·2020,·CERN.·Created·using·Sphinx·3.4.3. | 94 | ©·Copyright·2020,·CERN.·Created·using·Sphinx·3.4.3. |
Offset 1, 69 lines modified | Offset 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·—·pyxrootd·current·documentation</title> | 6 | ····<title>3.2.·File·examples·—·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>·»</li> | 35 | ········<li·class="nav-item·nav-item-0"><a·href="../index.html">pyxrootd·current·documentation</a>·»</li> |
36 | ··········<li·class="nav-item·nav-item-1"><a·href="../examples.html"·accesskey="U"><strong>Examples</strong></a>·»</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>·»</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">'root://someserver//tmp/eggs'</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">'root://someserver//tmp/eggs'</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">'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">'</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">'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">'</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">'</span><span·class="si">%r</span><span·class="s1">'</span>·<span·class="o">%</span>·<span·class="n">data</span> | 61 | ··<span·class="nb">print</span>·<span·class="s1">'</span><span·class="si">%r</span><span·class="s1">'</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">'DataServer'</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">'DataServer'</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">'LastURL'</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">'LastURL'</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">'ReadRecovery'</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">'ReadRecovery'</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">'ReadRecovery'</span><span·class="p">,</span>·<span·class="s1">'false'</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">'ReadRecovery'</span><span·class="p">,</span>·<span·class="s1">'false'</span><span·class="p">)</span> |
Offset 76, 67 lines modified | Offset 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">'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">'</span> | 77 | <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="s1">'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">'</span> |
78 | <span·class="s1">'eggs'</span> | 78 | <span·class="s1">'eggs'</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">'spam</span><span·class="se">\n</span><span·class="s1">'</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">'spam</span><span·class="se">\n</span><span·class="s1">'</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">'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">'</span> | 90 | <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="s1">'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">'</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">'</span><span·class="si">%r</span><span·class="s1">'</span>·<span·class="o">%</span>·<span·class="n">line</span> | 97 | ····<span·class="nb">print</span>·<span·class="s1">'</span><span·class="si">%r</span><span·class="s1">'</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">'green</span><span·class="se">\n</span><span·class="s1">'</span> | 101 | <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="s1">'green</span><span·class="se">\n</span><span·class="s1">'</span> |
102 | <span·class="s1">'eggs</span><span·class="se">\n</span><span·class="s1">'</span> | 102 | <span·class="s1">'eggs</span><span·class="se">\n</span><span·class="s1">'</span> |
103 | <span·class="s1">'and</span><span·class="se">\n</span><span·class="s1">'</span> | 103 | <span·class="s1">'and</span><span·class="se">\n</span><span·class="s1">'</span> |
104 | <span·class="s1">'spam</span><span·class="se">\n</span><span·class="s1">'</span> | 104 | <span·class="s1">'spam</span><span·class="se">\n</span><span·class="s1">'</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">'</span><span·class="si">%r</span><span·class="s1">'</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">'</span><span·class="si">%r</span><span·class="s1">'</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·the | 114 | <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·to | 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·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">'green</span><span·class="se">\n</span><span·class="s1">'</span> | 117 | <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="s1">'green</span><span·class="se">\n</span><span·class="s1">'</span> |
118 | <span·class="p">[</span><span·class="s1">'eggs</span><span·class="se">\n</span><span·class="s1">'</span><span·class="p">,</span>·<span·class="s1">'and</span><span·class="se">\n</span><span·class="s1">'</span><span·class="p">,</span>·<span·class="s1">'spam</span><span·class="se">\n</span><span·class="s1">'</span><span·class="p">]</span> | 118 | <span·class="p">[</span><span·class="s1">'eggs</span><span·class="se">\n</span><span·class="s1">'</span><span·class="p">,</span>·<span·class="s1">'and</span><span·class="se">\n</span><span·class="s1">'</span><span·class="p">,</span>·<span·class="s1">'spam</span><span·class="se">\n</span><span·class="s1">'</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">'</span><span·class="si">%r</span><span·class="s1">'</span>·<span·class="o">%</span>·<span·class="n">chunk</span> | 125 | ····<span·class="nb">print</span>·<span·class="s1">'</span><span·class="si">%r</span><span·class="s1">'</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">'green</span><span·class="se">\n</span><span·class="s1">eggs'</span> | 129 | <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="s1">'green</span><span·class="se">\n</span><span·class="s1">eggs'</span> |
130 | <span·class="s1">'</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">'</span> | 130 | <span·class="s1">'</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">'</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. |
Offset 9, 69 lines modified | Offset 9, 69 lines modified | ||
9 | ****·Navigation·**** | 9 | ****·Navigation·**** |
10 | ····*·index | 10 | ····*·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·examples | 16 | ····*·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·to | 18 | 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·client | 21 | from·XRootD·import·client |
22 | from·XRootD.client.flags·import·OpenFlags | 22 | 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·file | 28 | ··status,·data·=·f.read()·#·Reads·the·whole·file |
29 | ··print·'%r'·%·data | 29 | ··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'·%·data | 36 | ··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'·%·line | 48 | ····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·the | 57 | 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'·%·chunk | 63 | ····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].size | 70 | ··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 modified | Offset 81, 32 lines modified | ||
81 | ····print·chunk | 81 | ····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_examples | 88 | ····*·3.2._File_examples |
89 | ··········o·2.1._Read_a_certain_amount_of_data_from_a_certain_offset_in_a | 89 | ··········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_file | 91 | ··········o·3.2.2._Write_a_chunk_of_data_to_a_file |
91 | ··········o·2.3._Iterate_over_a_file,_delimited_by_newline_characters | 92 | ··········o·3.2.3._Iterate_over_a_file,_delimited_by_newline_characters |
92 | ··········o·2.4._Read_all_lines_from_a_file_into_a_list | 93 | ··········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_size | 94 | ··········o·3.2.5._Iterate_over_a_file_in_chunks_of_the_specified_size |
94 | ··········o·2.6._Read_scattered_data_chunks_in_one_operation | 95 | ··········o·3.2.6._Read_scattered_data_chunks_in_one_operation |
95 | ***·Previous·topic·*** | 96 | ***·Previous·topic·*** |
96 | 1._FileSystem_examples | 97 | 3.1._FileSystem_examples |
97 | ***·Next·topic·*** | 98 | ***·Next·topic·*** |
98 | 3._CopyProcess_examples | 99 | 3.3._CopyProcess_examples |
99 | ****·This·Page·**** | 100 | ****·This·Page·**** |
100 | ····*·Show_Source | 101 | ····*·Show_Source |
101 | ****·Quick·search·**** | 102 | ****·Quick·search·**** |
102 | [q···················]·[Go] | 103 | [q···················]·[Go] |
103 | ****·Navigation·**** | 104 | ****·Navigation·**** |
104 | ····*·index | 105 | ····*·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·examples | 111 | ····*·3.2.·File·examples |
111 | ©·Copyright·2020,·CERN.·Created·using·Sphinx·3.4.3. | 112 | ©·Copyright·2020,·CERN.·Created·using·Sphinx·3.4.3. |
Offset 1, 77 lines modified | Offset 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·—·pyxrootd·current·documentation</title> | 6 | ····<title>3.1.·FileSystem·examples·—·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>·»</li> | 35 | ········<li·class="nav-item·nav-item-0"><a·href="../index.html">pyxrootd·current·documentation</a>·»</li> |
36 | ··········<li·class="nav-item·nav-item-1"><a·href="../examples.html"·accesskey="U"><strong>Examples</strong></a>·»</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>·»</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·the | 49 | <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">'root://someserver:1094'</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">'root://someserver:1094'</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">'/tmp/spam'</span><span·class="p">,</span>·<span·class="s1">'/tmp/eggs'</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">'/tmp/spam'</span><span·class="p">,</span>·<span·class="s1">'/tmp/eggs'</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·configurable | 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·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">'/tmp'</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">'/tmp'</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">"</span><span·class="si">{0}</span><span·class="s2">·</span><span·class="si">{1:>10}</span><span·class="s2">·</span><span·class="si">{2}</span><span·class="s2">"</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">"</span><span·class="si">{0}</span><span·class="s2">·</span><span·class="si">{1:>10}</span><span·class="s2">·</span><span·class="si">{2}</span><span·class="s2">"</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 modified | Offset 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">"/tmp/some/dir"</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">"/tmp/some/dir"</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">"/tmp/some/dir"</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">"/tmp/some/dir"</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">"/tmp/spam"</span><span·class="p">,</span>·<span·class="s2">"/tmp/eggs"</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">"/tmp/spam"</span><span·class="p">,</span>·<span·class="s2">"/tmp/eggs"</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">"/tmp/eggs"</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">"/tmp/eggs"</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">"/tmp"</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">"/tmp"</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"><</span><span·class="n">locations</span><span·class="p">:</span>·<span·class="p">[</span><span·class="o"><</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">'[::127.0.0.1]:1094'</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">></span><span·class="p">]</span><span·class="o">></span> | 116 | <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="o"><</span><span·class="n">locations</span><span·class="p">:</span>·<span·class="p">[</span><span·class="o"><</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">'[::127.0.0.1]:1094'</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">></span><span·class="p">]</span><span·class="o">></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">'/tmp'</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">'/tmp'</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. |
Offset 9, 85 lines modified | Offset 9, 85 lines modified | ||
9 | ****·Navigation·**** | 9 | ****·Navigation·**** |
10 | ····*·index | 10 | ····*·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·examples | 16 | ····*·3.1.·FileSystem·examples |
17 | ******·1.·FileSystem·examples¶·****** | 17 | ******·3.1.·FileSystem·examples¶·****** |
18 | This·page·includes·some·simple·examples·of·basic·usage·of·the | 18 | 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·rest | 20 | 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·client | 22 | from·XRootD·import·client |
23 | from·XRootD.client.flags·import·DirListFlags,·OpenFlags,·MkDirFlags,·QueryCode | 23 | 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].ok | 27 | 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.parent | 31 | 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·spam | 36 | 2013-04-12·09:46:51·········20·spam |
37 | 2013-04-05·08:23:00·······4096·.xrootd | 37 | 2013-04-05·08:23:00·······4096·.xrootd |
38 | 2013-04-12·09:33:25·········20·eggs | 38 | 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·locations | 49 | 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·response | 55 | 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 | 1 | 58 | 1 |
59 | For·more·information·about·XRootD·query·codes·and·arguments,·see·the_relevant | 59 | 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_examples | 63 | ····*·3.1._FileSystem_examples |
64 | ··········o·1.1._Copy_a_file | 64 | ··········o·3.1.1._Copy_a_file |
65 | ··········o·1.2._Ask_a_for_a_directory_listing | 65 | ··········o·3.1.2._Ask_a_for_a_directory_listing |
66 | ··········o·1.3._Make_a_directory | 66 | ··········o·3.1.3._Make_a_directory |
67 | ··········o·1.4._Delete_a_directory | 67 | ··········o·3.1.4._Delete_a_directory |
68 | ··········o·1.5._Move/rename_a_file | 68 | ··········o·3.1.5._Move/rename_a_file |
69 | ··········o·1.6._Delete_a_file | 69 | ··········o·3.1.6._Delete_a_file |
70 | ··········o·1.7._Locate_a_file | 70 | ··········o·3.1.7._Locate_a_file |
71 | ··········o·1.8._Ask_the_server_for_some_information | 71 | ··········o·3.1.8._Ask_the_server_for_some_information |
72 | ***·Previous·topic·*** | 72 | ***·Previous·topic·*** |
73 | Examples | 73 | 3._Examples |
74 | ***·Next·topic·*** | 74 | ***·Next·topic·*** |
75 | 2._File_examples | 75 | 3.2._File_examples |
76 | ****·This·Page·**** | 76 | ****·This·Page·**** |
77 | ····*·Show_Source | 77 | ····*·Show_Source |
78 | ****·Quick·search·**** | 78 | ****·Quick·search·**** |
79 | [q···················]·[Go] | 79 | [q···················]·[Go] |
80 | ****·Navigation·**** | 80 | ****·Navigation·**** |
81 | ····*·index | 81 | ····*·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·examples | 87 | ····*·3.1.·FileSystem·examples |
88 | ©·Copyright·2020,·CERN.·Created·using·Sphinx·3.4.3. | 88 | ©·Copyright·2020,·CERN.·Created·using·Sphinx·3.4.3. |
Offset 1, 79 lines modified | Offset 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·—·pyxrootd·current·documentation</title> | 6 | ····<title>3.·Examples·—·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>·»</li> | 35 | ········<li·class="nav-item·nav-item-0"><a·href="index.html">pyxrootd·current·documentation</a>·»</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 modified | Offset 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 modified | Offset 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>·»</li> | 131 | ········<li·class="nav-item·nav-item-0"><a·href="index.html">pyxrootd·current·documentation</a>·»</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 | ········©·Copyright·2020,·CERN. | 136 | ········©·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> |
Offset 9, 45 lines modified | Offset 9, 46 lines modified | ||
9 | ****·Navigation·**** | 9 | ****·Navigation·**** |
10 | ····*·index | 10 | ····*·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 | ******·Examples¶·****** | 16 | ******·3.·Examples¶·****** |
17 | ····*·1._FileSystem_examples | 17 | ····*·3.1._FileSystem_examples |
18 | ··········o·1.1._Copy_a_file | 18 | ··········o·3.1.1._Copy_a_file |
19 | ··········o·1.2._Ask_a_for_a_directory_listing | 19 | ··········o·3.1.2._Ask_a_for_a_directory_listing |
20 | ··········o·1.3._Make_a_directory | 20 | ··········o·3.1.3._Make_a_directory |
21 | ··········o·1.4._Delete_a_directory | 21 | ··········o·3.1.4._Delete_a_directory |
22 | ··········o·1.5._Move/rename_a_file | 22 | ··········o·3.1.5._Move/rename_a_file |
23 | ··········o·1.6._Delete_a_file | 23 | ··········o·3.1.6._Delete_a_file |
24 | ··········o·1.7._Locate_a_file | 24 | ··········o·3.1.7._Locate_a_file |
25 | ··········o·1.8._Ask_the_server_for_some_information | 25 | ··········o·3.1.8._Ask_the_server_for_some_information |
26 | ····*·2._File_examples | 26 | ····*·3.2._File_examples |
27 | ··········o·2.1._Read_a_certain_amount_of_data_from_a_certain_offset_in_a | 27 | ··········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_file | 29 | ··········o·3.2.2._Write_a_chunk_of_data_to_a_file |
29 | ··········o·2.3._Iterate_over_a_file,_delimited_by_newline_characters | 30 | ··········o·3.2.3._Iterate_over_a_file,_delimited_by_newline_characters |
30 | ··········o·2.4._Read_all_lines_from_a_file_into_a_list | 31 | ··········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_size | 32 | ··········o·3.2.5._Iterate_over_a_file_in_chunks_of_the_specified_size |
32 | ··········o·2.6._Read_scattered_data_chunks_in_one_operation | 33 | ··········o·3.2.6._Read_scattered_data_chunks_in_one_operation |
33 | ····*·3._CopyProcess_examples | 34 | ····*·3.3._CopyProcess_examples |
34 | ··········o·3.1._Add_a_number_of_copy_jobs_and_run_them_in_parallel_with_a | 35 | ··········o·3.3.1._Add_a_number_of_copy_jobs_and_run_them_in_parallel_with_a |
35 | ············progress_handler | 36 | ············progress_handler |
36 | [Logo] | 37 | [Logo] |
37 | ***·Previous·topic·*** | 38 | ***·Previous·topic·*** |
38 | 2._Getting_Started | 39 | 2._Getting_Started |
39 | ***·Next·topic·*** | 40 | ***·Next·topic·*** |
40 | 1._FileSystem_examples | 41 | 3.1._FileSystem_examples |
41 | ****·This·Page·**** | 42 | ****·This·Page·**** |
42 | ····*·Show_Source | 43 | ····*·Show_Source |
43 | ****·Quick·search·**** | 44 | ****·Quick·search·**** |
44 | [q···················]·[Go] | 45 | [q···················]·[Go] |
45 | ****·Navigation·**** | 46 | ****·Navigation·**** |
46 | ····*·index | 47 | ····*·index |
47 | ····*·modules·| | 48 | ····*·modules·| |
48 | ····*·next·| | 49 | ····*·next·| |
49 | ····*·previous·| | 50 | ····*·previous·| |
50 | ····*·pyxrootd_current_documentation·» | 51 | ····*·pyxrootd_current_documentation·» |
51 | ····*·Examples | 52 | ····*·3.·Examples |
52 | ©·Copyright·2020,·CERN.·Created·using·Sphinx·3.4.3. | 53 | ©·Copyright·2020,·CERN.·Created·using·Sphinx·3.4.3. |
Offset 12, 28 lines modified | Offset 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>·»</li> | 37 | ········<li·class="nav-item·nav-item-0"><a·href="index.html">pyxrootd·current·documentation</a>·»</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 modified | Offset 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 modified | Offset 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>·»</li> | 195 | ········<li·class="nav-item·nav-item-0"><a·href="index.html">pyxrootd·current·documentation</a>·»</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> |
Offset 79, 15 lines modified | Offset 79, 15 lines modified | ||
79 | ······················#·2.1.2.1._Synchronous_requests | 79 | ······················#·2.1.2.1._Synchronous_requests |
80 | ······················#·2.1.2.2._Asynchronous_requests | 80 | ······················#·2.1.2.2._Asynchronous_requests |
81 | ················#·2.1.3._Timeouts | 81 | ················#·2.1.3._Timeouts |
82 | ··········o·2.2._Copying_files | 82 | ··········o·2.2._Copying_files |
83 | ***·Previous·topic·*** | 83 | ***·Previous·topic·*** |
84 | 1._Installing_pyxrootd | 84 | 1._Installing_pyxrootd |
85 | ***·Next·topic·*** | 85 | ***·Next·topic·*** |
86 | Examples | 86 | 3._Examples |
87 | ****·This·Page·**** | 87 | ****·This·Page·**** |
88 | ····*·Show_Source | 88 | ····*·Show_Source |
89 | ****·Quick·search·**** | 89 | ****·Quick·search·**** |
90 | [q···················]·[Go] | 90 | [q···················]·[Go] |
91 | ****·Navigation·**** | 91 | ****·Navigation·**** |
92 | ····*·index | 92 | ····*·index |
93 | ····*·modules·| | 93 | ····*·modules·| |
Offset 54, 18 lines modified | Offset 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> |
Offset 19, 18 lines modified | Offset 19, 18 lines modified | ||
19 | For·bug·reporting·and·issue·tracking,·please·see·the_pyxrootd_github_issue | 19 | For·bug·reporting·and·issue·tracking,·please·see·the_pyxrootd_github_issue |
20 | tracker | 20 | tracker |
21 | *****·User·Guide¶·***** | 21 | *****·User·Guide¶·***** |
22 | ····*·1._Installing_pyxrootd | 22 | ····*·1._Installing_pyxrootd |
23 | ····*·2._Getting_Started | 23 | ····*·2._Getting_Started |
24 | ··········o·2.1._File_and_FileSystem_usage | 24 | ··········o·2.1._File_and_FileSystem_usage |
25 | ··········o·2.2._Copying_files | 25 | ··········o·2.2._Copying_files |
26 | ····*·Examples | 26 | ····*·3._Examples |
27 | ··········o·1._FileSystem_examples | 27 | ··········o·3.1._FileSystem_examples |
28 | ··········o·2._File_examples | 28 | ··········o·3.2._File_examples |
29 | ··········o·3._CopyProcess_examples | 29 | ··········o·3.3._CopyProcess_examples |
30 | *****·API·Reference¶·***** | 30 | *****·API·Reference¶·***** |
31 | ····*·1._XRootD.client.FileSystem:_Filesystem-based_operations | 31 | ····*·1._XRootD.client.FileSystem:_Filesystem-based_operations |
32 | ····*·2._XRootD.client.File:_File-based_operations | 32 | ····*·2._XRootD.client.File:_File-based_operations |
33 | ····*·3._XRootD.client.CopyProcess:_Copying_files | 33 | ····*·3._XRootD.client.CopyProcess:_Copying_files |
34 | ····*·4._XRootD.client.responses:_Server_response_objects | 34 | ····*·4._XRootD.client.responses:_Server_response_objects |
35 | ····*·5._XRootD.client.flags:_Flags_and_constants | 35 | ····*·5._XRootD.client.flags:_Flags_and_constants |
36 | ····*·6._XRootD.client.URL:_XRootD_URL_object | 36 | ····*·6._XRootD.client.URL:_XRootD_URL_object |
Offset 13, 30 lines modified | Offset 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>·»</li> | 37 | ········<li·class="nav-item·nav-item-0"><a·href="../../index.html">pyxrootd·current·documentation</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>· | 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 modified | Offset 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 modified | Offset 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>·»</li> | 484 | ········<li·class="nav-item·nav-item-0"><a·href="../../index.html">pyxrootd·current·documentation</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>· | 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 | ········©·Copyright·2020,·CERN. | 489 | ········©·Copyright·2020,·CERN. |
Offset 193, 15 lines modified | Offset 193, 15 lines modified | ||
193 | [Logo] | 193 | [Logo] |
194 | ****·Table_of_Contents·**** | 194 | ****·Table_of_Contents·**** |
195 | ····*·1._XRootD.client.FileSystem:_Filesystem-based_operations | 195 | ····*·1._XRootD.client.FileSystem:_Filesystem-based_operations |
196 | ··········o·1.1._Class_Reference | 196 | ··········o·1.1._Class_Reference |
197 | ················#·1.1.1._Attributes | 197 | ················#·1.1.1._Attributes |
198 | ················#·1.1.2._Methods | 198 | ················#·1.1.2._Methods |
199 | ***·Previous·topic·*** | 199 | ***·Previous·topic·*** |
200 | 3._CopyProcess_examples | 200 | 3.3._CopyProcess_examples |
201 | ***·Next·topic·*** | 201 | ***·Next·topic·*** |
202 | 2._XRootD.client.File:_File-based_operations | 202 | 2._XRootD.client.File:_File-based_operations |
203 | ****·This·Page·**** | 203 | ****·This·Page·**** |
204 | ····*·Show_Source | 204 | ····*·Show_Source |
205 | ****·Quick·search·**** | 205 | ****·Quick·search·**** |
206 | [q···················]·[Go] | 206 | [q···················]·[Go] |
207 | ****·Navigation·**** | 207 | ****·Navigation·**** |
Offset 767, 15 lines modified | Offset 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:·6 | 772 | ········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.·</sp | 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, |