Accessing Windows Network Share?

frikk frikker at gmail.com
Thu Aug 16 20:46:01 CEST 2007


On Aug 16, 2:43 pm, "Chris Mellon" <arka... at gmail.com> wrote:
> On 8/16/07, frikk <frik... at gmail.com> wrote:
>
>
>
>
>
> > I previously posted about accessing SharePoint over the web. Well I
> > have since given up any easy means of doing this, since something else
> > has perked my interest.  Instead of going tohttp://sharepoint/site,
> > why not just access \\sharepoint\site\ directly?
>
> > So my question is this - How do I access that network share?
>
> > If I go to start -> run, and type in "\\SharPointServer\Site\Folder",
> > windows explorer will pop up with it.  I suppose I could have a little
> > batch script that python runs to map the drive to a local letter, like
> > J:, but this does not seem necessary.
>
> > Suggestions?
>
> > This does not work, for obvious reasons:
> > >>> import glob.glob
> > >>> glob.glob("\\\\server\\folder\\*")
> > []
>
> I don't see whats "obvious" about this. Access to windows shares is
> handled by Windows in a VFS layer, and glob and all other Python file
> access works fine over them for me.- Hide quoted text -
>
> - Show quoted text -

Haha ok, you're right its not obvious. Sorry for that.

But that code does not work - should it?

Do you have an example of glob working over a file share, not a
network mapped drive?




More information about the Python-list mailing list