Title: Check enabling fileinfo attributes on Windows - (FileInfo object has no attribute XXX error) · Issue #131 · ParallelSSH/ssh2-python · GitHub
Open Graph Title: Check enabling fileinfo attributes on Windows - (FileInfo object has no attribute XXX error) · Issue #131 · ParallelSSH/ssh2-python
X Title: Check enabling fileinfo attributes on Windows - (FileInfo object has no attribute XXX error) · Issue #131 · ParallelSSH/ssh2-python
Description: OS: Windows 10 64 bit Python: 3.8.4 (64 bit) ssh2-python: 0.23.0 Code snippet: res = connection.session.scp_recv2(file) print(res[1], dir(res[1])) with open(join(destination_, file_), "wb+") as f: size = 0 while True: siz, tbuff = res[0]...
Open Graph Description: OS: Windows 10 64 bit Python: 3.8.4 (64 bit) ssh2-python: 0.23.0 Code snippet: res = connection.session.scp_recv2(file) print(res[1], dir(res[1])) with open(join(destination_, file_), "wb+") as f: ...
X Description: OS: Windows 10 64 bit Python: 3.8.4 (64 bit) ssh2-python: 0.23.0 Code snippet: res = connection.session.scp_recv2(file) print(res[1], dir(res[1])) with open(join(destination_, file_), "wb+&quo...
Opengraph URL: https://github.com/ParallelSSH/ssh2-python/issues/131
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Check enabling fileinfo attributes on Windows - (FileInfo object has no attribute XXX error)","articleBody":"OS: Windows 10 64 bit\r\nPython: 3.8.4 (64 bit)\r\nssh2-python: 0.23.0\r\nCode snippet:\r\n```\r\nres = connection.session.scp_recv2(file)\r\nprint(res[1], dir(res[1]))\r\nwith open(join(destination_, file_), \"wb+\") as f:\r\n size = 0\r\n while True:\r\n siz, tbuff = res[0].read()\r\n if siz \u003c 0:\r\n print(\"error code:\", siz)\r\n res[0].close()\r\n break\r\n size += siz\r\n if size \u003e res[1].st_size:\r\n sz = res[1].st_size - size\r\n f.write(tbuff[:sz])\r\n else:\r\n f.write(tbuff)\r\n if size \u003e= res[1].st_size:\r\n res[0].close()\r\n break\r\nutime(join(destination_, file_), (res[1].st_atime, res[1].st_mtime))\r\n```\r\nprint result:\r\n\r\n","author":{"url":"https://github.com/hakaishi","@type":"Person","name":"hakaishi"},"datePublished":"2020-11-06T15:03:04.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/131/ssh2-python/issues/131"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:44d3dcfd-dbb6-98f5-888a-833cc34d9255 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A85C:2780A3:1A5C556:242EFB8:696AA64D |
| html-safe-nonce | 5f57fcfabee0c60f1cda54e812df199a27dc0551c151868a833a779427e4ed6e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBODVDOjI3ODBBMzoxQTVDNTU2OjI0MkVGQjg6Njk2QUE2NEQiLCJ2aXNpdG9yX2lkIjoiODQyNTE0MzYyNjQwMzMyNTUxNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 40abb3edbcfcf2d748111a8d15bb93cb872a3fa8f2b2f18e5ab3e0d58a5442c9 |
| hovercard-subject-tag | issue:737826881 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/ParallelSSH/ssh2-python/131/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5e44a60b32257b67ef409907c32641272919e89f4a4182421675b20c713c5629/ParallelSSH/ssh2-python/issues/131 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5e44a60b32257b67ef409907c32641272919e89f4a4182421675b20c713c5629/ParallelSSH/ssh2-python/issues/131 |
| og:image:alt | OS: Windows 10 64 bit Python: 3.8.4 (64 bit) ssh2-python: 0.23.0 Code snippet: res = connection.session.scp_recv2(file) print(res[1], dir(res[1])) with open(join(destination_, file_), "wb+") as f: ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | hakaishi |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3eaf9b8cf1badcd7041a8ad480b9d9b28bea0ef1cc821ca9ff20f2cc7f4fe4b9 |
| turbo-cache-control | no-preview |
| go-import | github.com/ParallelSSH/ssh2-python git https://github.com/ParallelSSH/ssh2-python.git |
| octolytics-dimension-user_id | 22918200 |
| octolytics-dimension-user_login | ParallelSSH |
| octolytics-dimension-repository_id | 98586974 |
| octolytics-dimension-repository_nwo | ParallelSSH/ssh2-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 98586974 |
| octolytics-dimension-repository_network_root_nwo | ParallelSSH/ssh2-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | dd9a979046e6382bd084e2bd873bf65f797125ff |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width