Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #11148 > unrolled thread
| Started by | MRAB <python@mrabarnett.plus.com> |
|---|---|
| First post | 2011-08-10 21:14 +0100 |
| Last post | 2011-08-10 21:14 +0100 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Directions on accessing shared folder in windows network MRAB <python@mrabarnett.plus.com> - 2011-08-10 21:14 +0100
| From | MRAB <python@mrabarnett.plus.com> |
|---|---|
| Date | 2011-08-10 21:14 +0100 |
| Subject | Re: Directions on accessing shared folder in windows network |
| Message-ID | <mailman.2124.1313007251.1164.python-list@python.org> |
On 10/08/2011 20:52, Ameet Nanda wrote:
> Hi,
>
> Can anyone point me to a way to access windows shared folders from the
> network using a python script. I tried accessing using open, which is
> mentioned to work perfectly on the web, but it gives me following errors
>
> >>>open(NW_PATH)
>
> it gives me a permission denied error as follows:
>
> >>> open("\\\\ameetn\\DropBox\\")
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> IOError: [Errno 2] No such file or directory: '\\\\ameetn\\'
>
> >>> open("\\\\ameetn\\DropBox")
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> IOError: [Errno 13] Permission denied: '\\\\ameetn\\DropBox'
>
> I am running Python 2.6 on Windows 7 platform.
>
"ameetn" is the name of the machine and "DropBox" is the name of a
shared folder on that machine.
The answer hasn't changed.
'open' is for opening _files_.
Give 'open' the path to a _file_.
Back to top | Article view | comp.lang.python
csiph-web