Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #82217

Re: why can't download file from linux server into local window disk c:

Path csiph.com!usenet.pasdenom.info!gegeweb.org!news.glorb.com!news.astraweb.com!border6.newsrouter.astraweb.com!not-for-mail
From "Thomas Rachel" <thomas.rachel@1:249/999.remove-cdt-this>
To All
Subject Re: why can't download file from linux server into local window disk c:
Message-ID <54866F2E.1755.complang@piz.noip.com> (permalink)
X-Comment-To All
Newsgroups comp.lang.python
In-Reply-To <54866F2E.1744.complang@piz.noip.com>
References <54866F2E.1744.complang@piz.noip.com>
X-FTN-AREA COMP.LANG.PYTHON
X-FTN-PID SoupGate-Win32 v1.05
X-FTN-MSGID <m64uk8$ua2$1@r01.glglgl.de> 1d5dd53e
X-FTN-REPLY <mailman.16725.1418055279.18130.python-list@python.org> d31fc52f
Content-Type text/plain; charset=IBM437
Content-Transfer-Encoding 8bit
X-Gateway piz.noip.com [Synchronet 3.15b-Win32 NewsLink 1.92]
X-Server piz.noip.me
Date 9 Dec 2014 11:32:00 -0500
Lines 26
Organization Unlimited download news at news.astraweb.com
NNTP-Posting-Host 2266ad8f.news.astraweb.com
X-Trace DXC=LP`[=a9Aa>5B;RYi]PcMG9L?0kYOcDh@:RScV177L_P1Zh[e@ZS;QS3l23]GVn`Zm6MHo6fPSBkU;04hIVDTD?[;7g\XjYcGeh9fPiGS6_2a\=
Xref csiph.com comp.lang.python:82217

Show key headers only | View raw


Am 09.12.2014 09:14 schrieb pengsir:

> My vps ip is x.y.z.w ,i want to download /etc/passwd from linux server
> into my local window disk c: .

> localpath = 'c:'

[...]

>      with open(localpath, 'wb') as fl:
> PermissionError: [Errno 13] Permission denied: 'c:'

That's completely clear: you are not allowed to create a file named
'c:'. You should replace it with a full path name, such as

localpath = 'c:\\passwd'

or such.


Thomas

--- SoupGate-Win32 v1.05
 * Origin: <SpaceSST.BBS.Fidonet<>NNTP.gateway.@.piz.noip.me> (1:249/999)
--- Synchronet 3.15b-Win32 NewsLink 1.92
SpaceSST BBS Usenet <> Fidonet Gateway

Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

why can't download file from linux server into local window disk c:? "pengsir" <pengsir@1:249/999.remove-cdt-this> - 2014-12-09 11:32 -0500
  Re: why can't download file from linux server into local window disk c: "Luuk" <luuk@1:249/999.remove-cdt-this> - 2014-12-09 11:32 -0500
  Re: why can't download file from linux server into local window disk c: "Thomas Rachel" <thomas.rachel@1:249/999.remove-cdt-this> - 2014-12-09 11:32 -0500
  Re: why can't download file from linux server into local window disk c: "Nobody" <nobody@1:249/999.remove-cdt-this> - 2014-12-09 11:32 -0500

csiph-web