Path: csiph.com!usenet.pasdenom.info!goblin1!goblin.stu.neva.ru!news.astraweb.com!border5.a.newsrouter.astraweb.com!not-for-mail From: "Chris Angelico" To: Luuk Subject: Re: why can't download file from linux server into local window disk c: Message-ID: <54866F2E.1749.complang@piz.noip.com> X-Comment-To: Luuk Newsgroups: comp.lang.python In-Reply-To: <54866F2E.1748.complang@piz.noip.com> References: <54866F2E.1748.complang@piz.noip.com> X-FTN-AREA: COMP.LANG.PYTHON X-FTN-PID: SoupGate-Win32 v1.05 X-FTN-MSGID: 56583ac3 X-FTN-REPLY: <5485E9DC.6000509@invalid.lan> f7893dc8 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: 31 Organization: Unlimited download news at news.astraweb.com NNTP-Posting-Host: 2266ad8f.news.astraweb.com X-Trace: DXC=LP`[=a9Aa>Eo;ii5o?B_6AL?0kYOcDh@JRScV177L_PAZh[e@ZS;QSCl23]GVn`ZmFMHo6fPSBkUK04hIVDTD?[K7g\XjYcGehIfPiGS6_2a\M Xref: csiph.com comp.lang.python:82211 To: Luuk Copy: python-list@python.org (python-list@python.org) On Tue, Dec 9, 2014 at 5:11 AM, Luuk wrote: > On 8-12-2014 18:37, ishish wrote: >>> >>> with open(localpath, 'wb') as fl: >>> PermissionError: [Errno 13] Permission denied: 'c:' >> >> >> I remember gloomily (haven't used windows since ages) that newer Windows >> versions don't like users to write directly to C:. Have you tried to >> save the file to your Documents folder? >> >> Regards, >> Alba > > > no, it's the ssh-server denying a log on from 'root' It looks to me more like an issue with path naming. Try 'c:/' instead of 'c:', or use '/' to mean the root directory of the current drive. Alternatively, do a web search for the problem and the symptoms, as you're unlikely to be the first person to have run into this. ChrisA --- SoupGate-Win32 v1.05 * Origin: NNTP.gateway.@.piz.noip.me> (1:249/999) --- Synchronet 3.15b-Win32 NewsLink 1.92 SpaceSST BBS Usenet <> Fidonet Gateway