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


Groups > comp.lang.python > #82139

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

From Thomas Rachel <nutznetz-0c1b6768-bfa9-48d5-a470-7603bd3aa915@spamschutz.glglgl.de>
Newsgroups comp.lang.python
Subject Re: why can't download file from linux server into local window disk c:?
Date 2014-12-08 20:36 +0100
Organization A not so newly installed InterNetNews server
Message-ID <m64uk8$ua2$1@r01.glglgl.de> (permalink)
References <mailman.16725.1418055279.18130.python-list@python.org>

Show all headers | 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

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 <elearn2014@gmail.com> - 2014-12-09 00:14 -0800
  Re: why can't download file from linux server into local window disk c:? Luuk <luuk@invalid.lan> - 2014-12-08 17:37 +0100
  Re: why can't download file from linux server into local window disk c:? Thomas Rachel <nutznetz-0c1b6768-bfa9-48d5-a470-7603bd3aa915@spamschutz.glglgl.de> - 2014-12-08 20:36 +0100
  Re: why can't download file from linux server into local window disk c:? Nobody <nobody@nowhere.invalid> - 2014-12-08 22:25 +0000

csiph-web